This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

overpass query foreach not returning results.

0

I have installed overpass api using the docker and german image from geofabrik. I can run queries using the command line and api. However, using foreach and count i get no results but overpass-turbo.eu returns results. Can anyone help? Here is the my query code.

[out:csv(::"type",::"id", name, admin_level,::"count")]; area[name="Saarland"][boundary]; rel(area)["boundary"="postal_code"]; map_to_area; foreach->.d( (.d;);out; (node(area.d)[amenity=pharmacy]; way(area.d)[amenity=pharmacy]; relation(area.d)[amenity=pharmacy];); out count; );

asked 25 Jul '17, 21:36

mrparadox's gravatar image

mrparadox
11445
accept rate: 0%

Source code available on GitHub .