NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

When using Nonimatim browser I can get this kind of view to a city, where also all the subregions to which a city is a parent of are listed (+many other interesting details): http://nominatim.openstreetmap.org/details.php?place_id=97761941

I'd like to be able to get this same list through Nominatim API, but am unable to figure out how to do that. All API calls return just a very few details - so is this something that is not available through API? If this is so, is there some other way to get this data?

asked 25 Jan '13, 14:04

Lari's gravatar image

Lari
31224
accept rate: 0%

Seems like there is no API call for this specific output, maybe because it was (initially) intended for debugging.

(28 Jan '13, 09:28) scai ♦

I don't know whether Nominatim has an API call for this.

But to get the data, you can use [http://overpass-api.de/api/interpreter?data=rel[name=Helsinki];>;is_in;area._[admin_level];out; ]1 The returned XML contains all the administrative units that have a node inside Helsinki, including both suburbs and provinces, Finland and even the EU entry.

permanent link

answered 27 Jan '13, 14:33

Roland%20Olbricht's gravatar image

Roland Olbricht
6.7k36489
accept rate: 36%

edited 27 Jan '13, 21:28

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

1

Thanks, but the list received through this url is not the same as what I get through the Nominatim url above. What I need is a hierarchical list or a tree through which I could build a structure which starts at the city level, and goes down to different city districts and to their sub-districts. Is there a way to get this?

(27 Jan '13, 21:47) Lari

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×689
×290
×6

question asked: 25 Jan '13, 14:04

question was seen: 4,371 times

last updated: 28 Jan '13, 09:28

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum