Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#5201 closed defect (invalid)

Nominatim, wrong country name for cities in China

Reported by: alunu Owned by: geocoding@…
Priority: minor Milestone:
Component: nominatim Version:
Keywords: Cc:

Description

I am using Nominatim to search cities/towns/villages and it happened that I tested with the town of Shanghai. Here is the first result from Nominatim:

({place_id:"7768813", licence:"Data \xA9 OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright", osm_type:"node", osm_id:"778910398", boundingbox:[31.0653441, 31.3853441, 121.3288922, 121.6488922], lat:"31.2253441", lon:"121.4888922", display_name:"Shanghai, Huangpu District, Shanghai, Socialist Republic of Vietnam", class:"place", type:"city", importance:0.803757578797, icon:"http://open.mapquestapi.com/nominatim/v1/images/mapicons/poi_place_city.p.20.png", address:{city:"Shanghai", county:"Huangpu District", state:"Shanghai", country:"Socialist Republic of Vietnam", country_code:"cn"}})


The city is wrongfully placed in the Socialist Republic of Vietnam. Although the country code is ok, I am relying on address.country property to pull the country.


There seems to be a general problem with cities in China.

The same problem when searching through http://www.openstreetmap.org.

Change History (5)

comment:1 Changed 5 years ago by alunu

Priority: majorcritical

Moved this to critical since this has become deal-killer for us.

comment:2 Changed 5 years ago by Tom Hughes

Priority: criticalminor

Just because you chose to rely on a free service and not give yourself enough time to iron out any problems does not make this critical - it may be a critical problem for you but that does not make it a critical problem for us.

On top of which, the very nature of this service means that there will always be responses which may be a bit odd because a large set of people are constantly changing the underlying data.

In any case this is nowhere near critical for us - that would be something like the server being down and not answering any queries.

comment:3 Changed 5 years ago by Tom Hughes

Resolution: invalid
Status: newclosed

As expected, it turns out this is a data problem in OpenStreetMap, not a software problem in Nominatim - see http://www.openstreetmap.org/relation/270056 which shows that the China relation has been given the wrong name.

Once that is fixed Nominatim will return the correct results.

comment:4 Changed 5 years ago by Tom Hughes

The last edit to that relation has been rolled back now so Nominatim should now deliver the result you want.

comment:5 in reply to:  2 Changed 5 years ago by alunu

Replying to TomH:

Just because you chose to rely on a free service and not give yourself enough time to iron out any problems does not make this critical - it may be a critical problem for you but that does not make it a critical problem for us.

On top of which, the very nature of this service means that there will always be responses which may be a bit odd because a large set of people are constantly changing the underlying data.

In any case this is nowhere near critical for us - that would be something like the server being down and not answering any queries.


You are right. I promise to mark tickets properly next time.

Thanks a million.

Note: See TracTickets for help on using tickets.