Skip to content

Commit

Permalink
Create query.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJDufour authored Sep 8, 2024
1 parent ca4b38a commit 1bd767f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions query.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// specify attributes we want in the export
[out:csv('name',::lat,::lon;true;',')];

// search for Saint Louis with a specific wikidata id
// avoiding places with the same name
area
["wikidata"="Q38022"]
["name"="Saint Louis"]->.a;

// filter nodes, ways and relations by attribute and area
nwr["leisure"="park"][name](area.a);

// calculate centroid of ways and relations
out body center;

0 comments on commit 1bd767f

Please sign in to comment.