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 <[email protected]>: > 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 > [email protected] > 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
_______________________________________________ Geocoding mailing list [email protected] https://lists.openstreetmap.org/listinfo/geocoding

