Skip to content

Instantly share code, notes, and snippets.

@govvin
Created April 8, 2017 23:36
Show Gist options
  • Save govvin/29e09b8ae6522168b14128b5d60e063f to your computer and use it in GitHub Desktop.
Save govvin/29e09b8ae6522168b14128b5d60e063f to your computer and use it in GitHub Desktop.
Overpass Turbo query to collect all nodes tagged as tourism=viewpoint OR tourism=attraction OR tourism=artwork with "street" or "st." in their names
/*
This has been generated by the overpass-turbo wizard.
The original search was:
“(tourism=viewpoint || tourism=attraction || tourism=artwork) && (name ~ /street$/i || name ~ /str[.]/i) && type:node in philippines”
*/
[out:json][timeout:250];
// fetch area “philippines” to search in
{{geocodeArea:philippines}}->.searchArea;
// gather results
(
// query part for: “tourism=viewpoint and name~/street$/i”
node["tourism"="viewpoint"]["name"~"street$",i](area.searchArea);
// query part for: “tourism=viewpoint and name~/str[.]/i”
node["tourism"="viewpoint"]["name"~"str[.]",i](area.searchArea);
// query part for: “tourism=attraction and name~/street$/i”
node["tourism"="attraction"]["name"~"street$",i](area.searchArea);
// query part for: “tourism=attraction and name~/str[.]/i”
node["tourism"="attraction"]["name"~"str[.]",i](area.searchArea);
// query part for: “tourism=artwork and name~/street$/i”
node["tourism"="artwork"]["name"~"street$",i](area.searchArea);
// query part for: “tourism=artwork and name~/str[.]/i”
node["tourism"="artwork"]["name"~"str[.]",i](area.searchArea);
);
// print results
out body;
>;
out skel qt;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment