[Geocoding] Fresh Nominatim different than nominatim.openstreetmap.org

Anders Gunnarsson anders.gunnarsson at appello.com
Thu Apr 10 09:12:32 UTC 2014


Hi,

We have made a few fresh installations of Nominatim lately according to the documentation on http://wiki.openstreetmap.org/wiki/Nominatim/Installation

Our installations sometimes give different results than the official on nominatim.openstreetmap.org. So far we have seen the following differences:


1). Hits in Norway and Australia get the country code aq (Antarctica)

Query: http://nominatim.openstreetmap.org/search.php?format=json&q=spektrum,oslo&addressdetails=1

Result:
{"place_id":"5999966361","licence":"Data \u00a9 OpenStreetMap contributors, ODbL 1.0. http:\/\/www.openstreetmap.org\/copyright","osm_type":"way","osm_id":"10568134","boundingbox":["59.9124526977539","59.9133567810059","10.7537364959717","10.7557983398438"],"lat":"59.91290535","lon":"10.7546926800259","display_name":"Oslo Spektrum, 2, Sonja Henies plass, Vaterland, Sentrum, Oslo, 0785, Norway","class":"tourism","type":"attraction","importance":0.67918864804464,"icon":"http:\/\/nominatim.openstreetmap.org\/images\/mapicons\/poi_point_of_interest.p.20.png","address":{"attraction":"Oslo Spektrum","house_number":"2","road":"Sonja Henies plass","suburb":"Vaterland","city_district":"Sentrum","city":"Oslo","county":"Oslo","state":"Oslo","postcode":"0785","administrative":"Norway","country_code":"no"}}

Result from our server:
{"place_id":"34638614","licence":"Data \u00a9 OpenStreetMap contributors, ODbL 1.0. http:\/\/www.openstreetmap.org\/copyright","osm_type":"way","osm_id":"10568134","boundingbox":["59.9124544","59.9133563","10.7537372","10.7557978"],"lat":"59.91289595","lon":"10.7546996929979","display_name":"Oslo Spektrum, 2, Sonja Henies plass, Vaterland, Sentrum, Oslo, 0785, Norway","class":"tourism","type":"attraction","importance":0.67918864804464,"icon":"http:\/\/twin192\/nominatim\/images\/mapicons\/poi_point_of_interest.p.20.png","address":{"attraction":"Oslo Spektrum","house_number":"2","road":"Sonja Henies plass","suburb":"Vaterland","city_district":"Sentrum","city":"Oslo","county":"Oslo","state":"Oslo","postcode":"0785","country":"Norway","country_code":"aq"}}

The main difference is:
"administrative":"Norway","country_code":"no"
"country":"Norway","country_code":"aq"


2). Differences in importance

Query: http://nominatim.openstreetmap.org/search.php?format=json&q=zagreb

{"place_id":"6009489839","licence":"Data \u00a9 OpenStreetMap contributors, ODbL 1.0. http:\/\/www.openstreetmap.org\/copyright","osm_type":"relation","osm_id":"3168167","boundingbox":["45.7472991943359","45.9403457641602","15.8206872940063","16.1059093475342"],"lat":"45.8131545","lon":"15.9770298","display_name":"Zagreb, Grad Zagreb, Croatia","class":"boundary","type":"administrative","importance":0.80134698575067,"icon":"http:\/\/nominatim.openstreetmap.org\/images\/mapicons\/poi_boundary_administrative.p.20.png"}

{"place_id":"135454810","licence":"Data \u00a9 OpenStreetMap contributors, ODbL 1.0. http:\/\/www.openstreetmap.org\/copyright","osm_type":"relation","osm_id":"3168167","boundingbox":["45.7473017","45.9403433","15.8206873","16.1059084"],"lat":"45.8131545","lon":"15.9770298","display_name":"Zagreb, Grad Zagreb, Croatia","class":"boundary","type":"administrative","importance":0.45,"icon":"http:\/\/twin192\/nominatim\/images\/mapicons\/poi_boundary_administrative.p.20.png"}

"importance":0.80134698575067 vs "importance":0.45


3). Places not found using structured address search

Query: http://nominatim.openstreetmap.org/search.php?format=json&city=tao%20yuan%20xian&country=taiwan

10 places found on nominatim.openstreetmap.org vs 0 on our server.

I attached debug output from our server



Any ideas what may be causing these issues?

Our setup is something like CentOS 6, postgresql 9.3, PHP 5.3, Python 2.6
We've used both Nominatim 2.1 and 2.2 for import with the same results


Best regards,
-- 
Anders Gunnarsson



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nominatim_debug.txt
URL: <http://lists.openstreetmap.org/pipermail/geocoding/attachments/20140410/931740ce/attachment-0001.txt>


More information about the Geocoding mailing list