Skip to content

Instantly share code, notes, and snippets.

@geomantic
Created August 3, 2018 17:14
Show Gist options
  • Save geomantic/beed9711b04b6155c4db31ccee62a8ad to your computer and use it in GitHub Desktop.
Save geomantic/beed9711b04b6155c4db31ccee62a8ad to your computer and use it in GitHub Desktop.
Find all public buildings
// Function finds all publicly-owned buildings without street addresses
// collect all business nodes in a named set 'poi'
(
// building nodes
nwr[building][building~"school|civic|government|hospital|stadium|train_station|school|public|fire_station"]({{bbox}});
// office nodes
nwr[office][office~"government"]({{bbox}});
// military nodes
nwr[military]({{bbox}});
)->.publicbldgs;
// collect to-survey results
(
nwr.publicbldgs[!"addr:street"]->.no_street_address;
);
out meta center;
out body;
>;
out skel qt;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment