This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Boundaries Data Parent/Child Relation

1

Hello Guys,

I want to get Multi polygon boundaries from OSM. When I checked OSM documentation, I didn't see anything about parent/child relation. for example; Germany/Berlin/Pankow.

When I investigated this topic, I found following projects,

but these projects are not stable, that's why I didn't use.

How can I get Parent/Child information from OSM?

Thanks.

asked 14 Sep '17, 20:52

johnalen's gravatar image

johnalen
26112
accept rate: 0%

edited 14 Sep '17, 20:53


One Answer:

2

Typically you need to do spatial queries one way or the other to retrieve "sub"-admin entities of a given admin entity in OSM. You can do this with your own database or for example with overpass-turbo/overpass, example http://overpass-turbo.eu/s/rJ0 (Note doing this in a larger way with a public overpass instance is likely going to get you in trouble).

whosonfirst is a product of mapzen and uses something between little and no OSM data. We obviously cannot help you with non-OSM based projects.

answered 15 Sep '17, 07:44

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

edited 15 Sep '17, 22:16

Source code available on GitHub .