NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

new to osm - and all the corresponding things like requests done with overpass and thelike

update: this thread is related to the thread https://help.openstreetmap.org/questions/33926/osm-overpass-api-with-php-simplexml-minor-changes-to-the-parser

where i perform a request to the overpass-API-endpoint. All goes well - but i want to have

a. the results stored within a mysql-database b. perform a request with another area-definition....

see more at the above mentioned thread:

how to perform a request - note i do them with PHP

$query = 'node
  ["amenity"~".*"]
  (38.415938460513274,16.06338500976562,39.52205163048525,17.51220703125);
out;';

what if i replace this with the following

$query = 'node
  ["addr:postcode"~"RM12"]
  (51.5557914,0.2118915,51.5673083,0.2369398);
   node
  (around:1000)
  ["amenity"~"fast_food"];
           out;';

cf: http://wiki.openstreetmap.org/wiki/Xapi

well can i enter values for countries as well what if i want to have all schools from a certain country:

$query = 'node
  ["addr:country"~"Brasil"]
   node
  ["amenity"~"school"];
           out;';

question - can i do like mentioned above - can i perfom such requests?

please set me straight if my question is not concise and concrete enough

asked 12 Jun '14, 21:29

say_hello_to_the_world's gravatar image

say_hello_to...
19232427
accept rate: 0%

edited 12 Jun '14, 22:28

Are you trying to use XAPI or Overpass? You've referenced the XAPI wiki page and are quoting what looks like overpass queries. Also, you've not said what (this time) your end goal is.

It might help to take a step back and document somewhere (perhaps on a personal wiki page?) what you're trying to do, why you're trying to do it, what you've tried so far, what you expected to happen, and what actually did happen.

This page here is about software bug reporting:

http://www.joelonsoftware.com/articles/fog0000000029.html

but you might find it helpful all the same.

(12 Jun '14, 21:56) SomeoneElse ♦

update: thank you for the respond! this thread is related to the thread https://help.openstreetmap.org/questions/33926/osm-overpass-api-with-php-simplexml-minor-changes-to-the-parser

where i perform a request to the overpass-API-endpoint. All goes well - but i want to have

a. the results stored within a mysql-database b. perform a request with another area-definition....

see more at the above mentioned thread:

(12 Jun '14, 22:29) say_hello_to...

hello dear SomeQoneElse - again me. well since i am learing while working with the scripts i have create a wiki-page - here i collect all the ideas and good things that i collect in the internet. see the above mentioned question - in other words - rephrased http://wiki.openstreetmap.org/wiki/PHP_und_Overpass

love to hear from you. Dont hesitate to add your ideas - either here or at the wikipage

(12 Jun '14, 23:51) say_hello_to...

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×710
×34
×32
×21

question asked: 12 Jun '14, 21:29

question was seen: 2,456 times

last updated: 12 Jun '14, 23:51

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum