I'm trying to output a file in Overpass Turbo, let's assume CSV (because it seems easier to accomplish this with CSV), with:
Example output:
I've managed to output all info correctly except for the parent information, with this Overpass Turbo query:
However, I'm having a hard time figuring out how to get which admin_level=6 each place belongs to. Any help would be greatly appreciated. asked 15 Nov '20, 23:59 FSeixasPT |
Unsure if it's possible, but try looking at recursion (to get the relation on the way) & the 'for' block command in the wiki & here: https://dev.overpass-api.de/blog/index.html (unfortunately it's isn't searchable. you'll have to go through each page individually) Compacted version of your routine using RegEx:
answered 17 Nov '20, 19:57 DaveF |