Using Nominatim, I'm able to retrieve a full address from a reverse search. I click in the map, generating a lat/lon value for my click and it will bring back a full address, as such:

http://nominatim.openstreetmap.org/reverse.php?format=html&lat=53.1072166918934&lon=-2.3291015625&zoom=

If I query either raw OSM data (HERE) I'm only able to see the street name. Where is OSM getting the rest of the data from? Am I able to achieve a similar level of depth?

I'm currently running a web server hosting OSRM and a C# application feeding in queries, but I'm only ever able to get a street name back instead of a full address...

asked 15 Aug '16, 14:54

JamesGould's gravatar image

JamesGould
16691020
accept rate: 33%


The answer is Nominatim.

Nominatim builds an address hierarchy using information from the element's address tags and associatedStreet relations, places in the element's proximity, administrative boundaries enclosing the element and so on. Some of these steps are explained at the development overview.

If you open your link and click on details you can see the address hierarchy Nominatim has built and which other OSM elements were used to create this hierarchy.

Also note that there are some other geocoders for OSM.

permanent link

answered 15 Aug '16, 16:48

scai's gravatar image

scai ♦
30.6k17274428
accept rate: 23%

edited 15 Aug '16, 19:04

1

I also thought that Nominatim included a few other sources than just pure OSM data (e.g. Tiger address data)

(16 Aug '16, 09:50) escada

Yes, for the US Nominatim also uses Tiger address data as far as I know. Maybe similar additional data is used for some other countries. I still haven't found any good documentation for all this stuff.

(16 Aug '16, 09:53) scai ♦
Your answer
toggle preview

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:

×533
×108
×44

question asked: 15 Aug '16, 14:54

question was seen: 13,345 times

last updated: 16 Aug '16, 09:55

powered by OSQA