Python Forum
concatenate a request to the endpoint of OSM-API?! - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: concatenate a request to the endpoint of OSM-API?! (/thread-29003.html)



concatenate a request to the endpoint of OSM-API?! - apollo - Aug-13-2020

dear Community,


can i run this in a multiple form - such as a concatenated request - that gives back all the results for south america!?

i e
Argentina
Brazil
Chile
Paraquay
ect.
etx.


[out:csv(::id,::type,"name","addr:postcode","addr:city","addr:street","addr:housenumber","website"," contact:email=*")][timeout:600];
area["ISO3166-1"="BR"]->.a;
( node(area.a)[amenity=hospital];
  way(area.a)[amenity=hospital];
  rel(area.a)[amenity=hospital];);
out;
btw: this is just another version of writing down the request - see here:

see the bounding box for Austria for example: 46.3722761,9.5307487,49.0205264,17.160776
Also queries by bounding box work differently. See the Overpass API language guide for examples.

[out:csv(::id,::type,"name","addr:postcode","addr:city","addr:street","addr:housenumber","website"," contact:email=*")][timeout:300];
(
node[amenity=kindergarten](46.3722761,9.5307487,49.0205264,17.160776);
way[amenity=kindergarten](46.3722761,9.5307487,49.0205264,17.160776);
relation[amenity=kindergarten](46.3722761,9.5307487,49.0205264,17.160776);
);
out;
well the question is: is this possible to run a combined (concatenated ) request on the endpoint of overpass-turbo-?!