a question for the #OSM wizards: trying to write an #overpass query for getting ...
tlohde @tlohde@fediscience.org
a question for the #OSM wizards:
trying to write an #overpass query for getting the the city boundaries for each european capital (with a view to then querying for things within each area). Is there a way to elegantly handle all the differing admin_levels? Grabbing the representative point for each is straightforward enough, but I'm struggling with yanking out just a single boundary for each one. it's bothering me.
The best I've got so far is:
```
node[capital=yes]({{bbox}}) -> .capitals;
relation
(bn.capitals)
["type"="boundary"]
["boundary"="administrative"]
[admin_level!~"^(1|2|3|4|5)$"] -> .capital_boundary;
.capital_boundary out geom;
```
or this: https://overpass-turbo.eu/s/2z6i if you prefer
suggestions welcome.