CodeforNRV / NRV-Park-Finder

Find a public park and amenities in the New River Valley (VA)
1 stars 4 forks source link

Get amenities inside of OSM features #11

Open nealf opened 7 years ago

nealf commented 7 years ago

We want to be able to query OSM Overpass to be able to get all of the amenities inside of the parks to then load into the database.

nealf commented 7 years ago

Here's a query that gets ways and nodes inside of an area (Blacksburg Municipal Park 'way' is the one here), but it includes all of the park's nodes as well:

[out:json];
way(32515091);

map_to_area -> .a;
way(area.a)[leisure];
/*added by auto repair*/
(._;>;);
/*end of auto repair*/
out;
node(area.a)[leisure];
out;