how to perfom a request with differnet values for the location / area
new to osm - and all the corresponding things like requests done with overpass and thelike
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
the Map query is identical to the main API map query and returns:
All nodes that are inside a given bounding box and any relations that reference them.
All ways that reference at least one node that is inside a given bounding box, any relations that reference them [the ways], and any nodes outside the bounding box that the ways may reference.
GET /api/0.6/map?bbox=left,bottom,right,top
where:
left is the longitude of the left (westernmost) side of the bounding box, or minlon.
bottom is the latitude of the bottom (southernmost) side of the bounding box, or minlat.
right is the longitude of the right (easternmost) side of the bounding box, or maxlon.
top is the latitude of the top (northernmost) side of the bounding box, or maxlat.
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?