2

Is there a way to get only the relation IDs of a boundary in OSM? E.g. relation #350303 http://www.openstreetmap.org/relation/350303 is Pärnu maakond in Estonia which is an admin_level=6 boundary.

So my question is: How do I get the relation IDs of every admin_level=X boundary in country XY?

1

This should be possible with the Overpass API:

area[admin_level=2]["name"="Eesti"]->.boundaryarea;
rel(area.boundaryarea)["admin_level"];
out;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.