<div dir="ltr"><div dir="ltr"><div><a href="https://en.wikipedia.org/wiki/ISO_3166-1">https://en.wikipedia.org/wiki/ISO_3166-1</a> specifies its country code as a separate entity since 2002<br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Aug 31, 2018 at 10:10 PM Milo van der Linden <<a href="mailto:milo@dogodigi.net">milo@dogodigi.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr">According to wikipedia <a href="https://en.wikipedia.org/wiki/Hong_Kong" target="_blank">https://en.wikipedia.org/wiki/Hong_Kong</a>, Hong Kong became a part of China on the first of july, 1997. I do not know if this affects the official country code.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-08-31 14:58 GMT+02:00 Leo Orson <span dir="ltr"><<a href="mailto:orsonleo3@gmail.com" target="_blank">orsonleo3@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello everyone,<br><br>I tried to geocode "Hong Kong" (<a href="https://nominatim.openstreetmap.org/search.php?q=Hong%20Kong&format=json&addressdetails=1&accept-language=en" target="_blank">https://nominatim.openstreetmap.org/search.php?q=Hong Kong&format=json&addressdetails=1&accept-language=en</a>), and the country code comes out to be "cn".<br><br>But according to this list (<a href="https://wiki.openstreetmap.org/wiki/Nominatim/Country_Codes" target="_blank">https://wiki.openstreetmap.org/wiki/Nominatim/Country_Codes</a>), I found the country code for Hong Kong to be "HK", and hence I believe we should be getting HK instead of CN.<br><br>I did some research and I believe the Relation: China (270056) (<a href="https://www.openstreetmap.org/relation/270056/history#map=6/20.056/114.675" target="_blank">https://www.openstreetmap.org/relation/270056/history#map=6/20.056/114.675</a>) is the reason. Not sure how to fix this, hence thought of mailing it here.<div><br></div><div>Regards, </div><span class="m_-6304388802896978310HOEnZb"><font color="#888888"><div>Leo.</div></font></span></div>
<br>_______________________________________________<br>
Geocoding mailing list<br>
<a href="mailto:Geocoding@openstreetmap.org" target="_blank">Geocoding@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/geocoding" rel="noreferrer" target="_blank">https://lists.openstreetmap.org/listinfo/geocoding</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="m_-6304388802896978310gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><table style="width:353px;border:1px solid rgb(255,255,255);border-radius:5px 5px 5px 5px;padding:0.6em" cellpadding="0" cellspacing="0">
<tbody>
    <tr>
        <td style="width:88px;height:94px"><a href="http://www.dogodigi.net" target="_blank"><img alt="http://www.dogodigi.net" src="http://www.dogodigi.net/assets/images/content/tn_dgdg.png" height="96" width="66"></a></td>
        <td style="vertical-align:inherit;text-align:left;width:230px">
            <div style="text-align:left"><b><font style="color:#888888;font-family:arial,sans-serif;font-size:1.4em">Milo van der Linden</font></b><br></div>
            <div style="text-align:left"><span style="color:rgb(102,102,102)">web: <a href="http://www.dogodigi.net" target="_blank">dogodigi</a><br><font style="font-family:arial,sans-serif;font-size:1em">tel: +31-6-16598808</font></span></div>
            
        </td>
    </tr>
</tbody>
</table>
</div></div></div></div></div></div></div></div>
</div>
</blockquote></div>