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

I am trying to build up an address string like OSM Nominatim does using the overpass API, when all I have is the ID of e.g. a way:

http://www.openstreetmap.org/way/4979228

Target would be to get a string shown as when you are searching for 'Aachener Weiher" on Nominatim

Aachener Weiher, Frieda-Fischer-Weg, Neustadt/Süd, Innenstadt, Köln, Regierungsbezirk Köln, Nordrhein-Westfalen, 50674, Deutschland

I guess this can maybe be done using the is_in or recurse up <<; functions, but I am stuck n how to use them properly. All examples I found show how to get features in a given area, not the area around a given feature.

Can someone please point me into the right direction? Thank you.

asked 10 Dec '17, 20:01

osm-noob's gravatar image

osm-noob
11112
accept rate: 0%

1

Why do you want to do that with Overpass API? Overpass API is not a geocoder, you won't achieve the same results as with Nominatim because they work quite differently.

(11 Dec '17, 08:31) scai ♦

Thanks - I found Nominatim's reverse Geocoding feature - which can get the address details, but does not include the OSM IDs of the features. My approach was kind of a polyfill for getting IDs with names. But as I learned today, the OSM IDs are far from persistent... I think I have to read more about the underlying tech and understand it better.

(11 Dec '17, 12:31) osm-noob

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:

×710
×689
×483
×202
×91

question asked: 10 Dec '17, 20:01

question was seen: 2,312 times

last updated: 11 Dec '17, 12:31

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