osm-search / Nominatim

Open Source search based on OpenStreetMap data
https://nominatim.org
GNU General Public License v3.0
3.14k stars 714 forks source link

Different results with local and public nominatim. #183

Closed muzuro closed 10 years ago

muzuro commented 10 years ago

I have installed local nominatim according to http://wiki.openstreetmap.org/wiki/Nominatim/Installation. I have imported Moscow and suburb extract(http://data.gis-lab.info/osm_dump/dump/latest/RU-MOS.osm.pbf). There is a difference for query search.php?q=Дубининская+улица+31а. Local nominatim returns 8 street items without house. Public nominatim return single item with house. There is also difference in details for this house. Public details looks like this: image And local details: image

mtmail commented 10 years ago

I've setup a Nominatim instance using the RU-MOS.osm.pbf file here: http://178.62.220.83:8089/nominatim/search.php?q=%D0%94%D1%83%D0%B1%D0%B8%D0%BD%D0%B8%D0%BD%D1%81%D0%BA%D0%B0%D1%8F+%D1%83%D0%BB%D0%B8%D1%86%D0%B0+31%D0%B0

I think you see the 8 non-house results after clicking 'more result'. In this case it adds the exclude_place_ids parameter to the URL. So the best result is excluded and Nominatim will look for more (less precise) results. Both in terms of search radius and match (e.g. excluding the house number). Does that make sense?

( I would argue that the website shouldn't show a 'more result's link' because it gets confused as a pagination link. )

The difference on the details for the place looks fine. I see the public installation also includes the 'central federal disctrict' and the 'russian federation'. Most likely those are not part of the input .osm.pbf file.

lonvia commented 10 years ago

@muzuro are you using the 2.2 release or the development version? If it is the release, could you please try with the latest Nominatim version from git?

mtmail commented 10 years ago

the installation on http://178.62.220.83:8089/nominatim/ is the latest from git (fd6db5a13fdfc385a38a51e1c3acd970b05c419b) if that helps.

lonvia commented 10 years ago

I suspected that much, which made me think that @muzuro might be hitting defb809b834ba2cd8ee8025fc829f16511855961

muzuro commented 10 years ago

@lonvia yes i have installed 2.2 release. I will try with latest version. Should i import pbf file again, or i can simply replace 2.2 folder with latest nominatim?

muzuro commented 10 years ago

On latest version it is ok.

lonvia commented 10 years ago

Happy to hear that it works. A new release should be arriving soon.