Skip to content

Instantly share code, notes, and snippets.

@carstenhag
Last active April 17, 2019 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carstenhag/cca71fd096f3e44b0ae8865ed941599e to your computer and use it in GitHub Desktop.
Save carstenhag/cca71fd096f3e44b0ae8865ed941599e to your computer and use it in GitHub Desktop.
[timeout:3600];
( area["ISO3166-1:alpha3"="DEU"];) ->.a;
node["amenity"="parking"]
(area.a);
(._;>;);
out body;
Only returns post_office amenities
[timeout:3600];
( area["ISO3166-1:alpha3"="DEU"];) ->.a;
node["amenity"="post_box"]
(area.a);
(._;>;);
node["amenity"="post_office"]
(area.a);
(._;>;);
out body;
Returns both post boxes and post offices! This works!
[timeout:3600];
( area["ISO3166-1:alpha3"="DEU"];) ->.a;
(
node["amenity"="post_box"]
(area.a);
node["amenity"="post_office"]
(area.a);
);
(._;>;);
out body;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment