Skip to content

Instantly share code, notes, and snippets.

@chroth7
Last active November 2, 2016 12:44
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chroth7/43ca48597a3a28ef3dbe to your computer and use it in GitHub Desktop.
Save chroth7/43ca48597a3a28ef3dbe to your computer and use it in GitHub Desktop.
// CSV Output
[out:csv(name, ::"lat", ::"lon")];
{{geocodeArea:CH}}->.searchArea;
// gather results
(
// query part for: “place”
(node["place"]["name"~"^.+$"](area.searchArea);)
);
out body;
// CSV Output
[out:csv(name, ::"lat", ::"lon")];
{{geocodeArea:CH}}->.searchArea;
// gather results
(
// query part for: “place”
(node["place"]["name"~"^.+$"]["place"!~"(locality|isolated_dwelling|yes)"](area.searchArea);)
);
out body;
// CSV Output
[out:csv(name, ::"lat", ::"lon")];
{{geocodeArea:CH}}->.searchArea;
// gather results
(
// query part for: “place”
(node["place"]["name"~"^.+$"]["place"!~"(locality|isolated_dwelling|yes|farm|neighbourhood)"](area.searchArea);)
);
out body;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment