I've just installed Nominatim using this guide. I've successfully import fresh osm.bz2 file with data for Saint-Petersburg, Russia into my postgresql database.

Nominatim search script works, but it shows another results, than openstreetmap.org and unfortunately can't find addresses with house numbers. For example, I try to find "60, Невский проспект". Openstreetmap.org works fine and finds a needful house, but local Nominatim finds only street with the same address, without house number.

So, what is the matter of such behaviour and how to aim the same search results as openstreetmap.org? Any ideas?

  • When you say that you import a fresh osm.bz2 file, are you saying that you downloaded it directly from the XAPI? From cloudmade? Have you tried to unzip the osm.bz2 file (or part of it) and look if the house number is correct on that street? Mar 14 '12 at 16:59
  • I use Extract file from planet.osm. Info about building I see in such format: <tag k="addr:housenumber" v="60"/>. And another one problem: at the end of all addresses I see "United states of America" instead of "Russian Federation". Mar 15 '12 at 10:32
  • 2
    You're hitting the border problem when using extracts with geocoding. You'll have to (atleast I did) modify the code and get some polygon defined around the covered area. I've had this with the benelux subset once. I believe the shape files could also help you there.
    – Glenn Plas
    Apr 16 '13 at 14:47

It says here that the adress is calculate using a combination of admin boundaries, is_in tags and place features. For building level features addresses are calculated using the address of the most suitable street.

Also it says here that nominatim does not process addr:* tags on buildings.

The main OSM site also uses geonames database in searching, so it may have different results.

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.