{"id":25376,"date":"2024-01-23T10:28:20","date_gmt":"2024-01-23T09:28:20","guid":{"rendered":"https:\/\/www.graviton.at\/letterswaplibrary\/is-there-any-iso-3166-second-level-dataset-and-country-county-geocoding-lib\/"},"modified":"2024-01-23T10:28:20","modified_gmt":"2024-01-23T09:28:20","slug":"is-there-any-iso-3166-second-level-dataset-and-country-county-geocoding-lib","status":"publish","type":"post","link":"https:\/\/www.graviton.at\/letterswaplibrary\/is-there-any-iso-3166-second-level-dataset-and-country-county-geocoding-lib\/","title":{"rendered":"Is There Any ISO 3166 Second Level Dataset And Country\/county Geocoding Lib?"},"content":{"rendered":"<p><!-- SC_OFF --><\/p>\n<div class=\"md\">\n<p>Hi all! <\/p>\n<p>A few questions:<\/p>\n<p>  There is ISO 3166 standard, it&#8217;s first level ISO 3166-1 is the list of countries and 2 letters and 3 letters unique codes. There is also second level ISO 3166-2 with subregions. Is it available anywhere ? I see a lot of articles in Wikipedia with subregional codes but can&#8217;t find whole dataset Is there any country dataset with macroregions and all codes set ? For example there are UN49 macroregions, WB macro regions and others. I am looking for something with all of it togeher. Is there any Python lib or locally installable webservice to identify certain country and, ideally, subregion? For example if I provide it 2-letters or 3-letters code, or name in English, German, Spanish, Russian or other langs. With different spelling and identification if &#8220;Vietnam&#8221; and &#8220;Viet Nam&#8221; is the same country, of &#8220;Russia&#8221; and &#8220;Russian Federation&#8221; or &#8220;United Kingdom&#8221; and &#8220;Great Britain&#8221; and minimally it returns country code and ideally all metadata.   <\/p>\n<p>Open source MIT and open data CC0\/OdBL only, please<\/p>\n<\/div>\n<p><!-- SC_ON -->   submitted by   <a href=\"https:\/\/www.reddit.com\/user\/ivan-begtin\"> \/u\/ivan-begtin <\/a> <br \/> <span><a href=\"https:\/\/www.reddit.com\/r\/datasets\/comments\/19djrir\/is_there_any_iso_3166_second_level_dataset_and\/\">[link]<\/a><\/span>   <span><a href=\"https:\/\/www.reddit.com\/r\/datasets\/comments\/19djrir\/is_there_any_iso_3166_second_level_dataset_and\/\">[comments]<\/a><\/span><\/p><div class='watch-action'><div class='watch-position align-right'><div class='action-like'><a class='lbg-style1 like-25376 jlk' href='javascript:void(0)' data-task='like' data-post_id='25376' data-nonce='614a020375' rel='nofollow'><img class='wti-pixel' src='https:\/\/www.graviton.at\/letterswaplibrary\/wp-content\/plugins\/wti-like-post\/images\/pixel.gif' title='Like' \/><span class='lc-25376 lc'>0<\/span><\/a><\/div><\/div> <div class='status-25376 status align-right'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Hi all! A few questions: There is ISO 3166 standard, it&#8217;s first level ISO 3166-1 is the&#8230;<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85],"tags":[],"class_list":["post-25376","post","type-post","status-publish","format-standard","hentry","category-datatards","wpcat-85-id"],"_links":{"self":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts\/25376","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/comments?post=25376"}],"version-history":[{"count":0,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts\/25376\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/media?parent=25376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/categories?post=25376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/tags?post=25376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}