[Geocoding] Country code for Hong Kong geocodes to "cn" instead of "hk"

Leo Orson orsonleo3 at gmail.com
Fri Aug 31 12:58:31 UTC 2018


Hello everyone,

I tried to geocode "Hong Kong"
(https://nominatim.openstreetmap.org/search.php?q=Hong
Kong&format=json&addressdetails=1&accept-language=en), and the country code
comes out to be "cn".

But according to this list (
https://wiki.openstreetmap.org/wiki/Nominatim/Country_Codes), I found the
country code for Hong Kong to be "HK", and hence I believe we should be
getting HK instead of CN.

I did some research and I believe the Relation: China (270056) (
https://www.openstreetmap.org/relation/270056/history#map=6/20.056/114.675)
is the reason. Not sure how to fix this, hence thought of mailing it here.

Regards,
Leo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/geocoding/attachments/20180831/e0c017b2/attachment.html>


More information about the Geocoding mailing list