6

Having an administrative boundary relation of certain level, what is the best way to get parent level boundaries?

This works for Bratislava city part Petržalka: http://overpass-turbo.eu/s/ewU

[out:csv(::id,::type,"name","admin_level")];
rel(2208781);
(._;<<;);
out;

The result is:

@id     @type       name                    admin_level
14296   relation    Slovensko               2
388210  relation    okres Bratislava V      8
388265  relation    Bratislavský kraj       4
1702499 relation    Bratislava              6
2208781 relation    Petržalka               9

But it doesn't work for Vienna part Meidling http://overpass-turbo.eu/s/ex1

[out:csv(::id,::type,"name","admin_level")];
rel(1990596);
(._;<<;);
out;

the result

@id     @type       name        admin_level
1990596 relation    Meidling    9

Obviously, the problem is that there are no sub-relations defined in Vienna boundary relations. Is there any reliable way to find these parent-child relations?

František Žiačik
  • 7,511
  • 1
  • 34
  • 59

0 Answers0