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

Leo Orson orsonleo3 at gmail.com
Sat Sep 1 07:27:30 UTC 2018


https://en.wikipedia.org/wiki/ISO_3166-1 specifies its country code as a
separate entity since 2002


On Fri, Aug 31, 2018 at 10:10 PM Milo van der Linden <milo at dogodigi.net>
wrote:

> According to wikipedia https://en.wikipedia.org/wiki/Hong_Kong, Hong Kong
> became a part of China on the first of july, 1997. I do not know if this
> affects the official country code.
>
> 2018-08-31 14:58 GMT+02:00 Leo Orson <orsonleo3 at gmail.com>:
>
>> 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.
>>
>> _______________________________________________
>> Geocoding mailing list
>> Geocoding at openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/geocoding
>>
>>
>
>
> --
> [image: http://www.dogodigi.net] <http://www.dogodigi.net>
> *Milo van der Linden*
> web: dogodigi <http://www.dogodigi.net>
> tel: +31-6-16598808
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/geocoding/attachments/20180901/cdfaa617/attachment.html>


More information about the Geocoding mailing list