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

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%

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:

×147
×54

question asked: 25 Jul '17, 21:36

question was seen: 934 times

last updated: 25 Jul '17, 21:36

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