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

Nodes hierarchy

0

There is a webservice that receives osm_id child nodes and parent node with a osm_id? At least at the level of administrative division?

Example: from the osm_id of Utah, i want to find the id of the counties and the id of U.S. nation.

Many Thanks

asked 04 Jul '12, 10:23

Independent%20L's gravatar image

Independent L
41335
accept rate: 0%

edited 04 Jul '12, 11:04

Pieren's gravatar image

Pieren
9.8k2083157


One Answer:

-1

OSM objects do not have a strict parent/child hierarchy like the one you describe.

If you want to find the administrative areas that a place belongs to, you can use Nominatim, and in particular the free MapQuest Open instance.

answered 04 Jul '12, 18:31

Richard's gravatar image

Richard ♦
30.9k44279412
accept rate: 18%

Source code available on GitHub .