Closed asjones987 closed 2 years ago
i can't crawl that source. it's made with react or something.
Wikipeida does not have them all. Not finding a good current comprehensive list on most other standards sites.... there is this one though. https://www.ip2location.com/free/iso3166-2
that looks decent and i can set it up so that whenever there's an update i could download, unzip and parse the file i'll have an update on this soon thanks for finding the source!
so, i parsed that file and was about to commit it when i realized that it contains mostly names in english and not in local language... maybe there's an even better list somewhere?
Not finding a good other list.... also realized the ip2location list does not have the subcategory type.....
is anybody using subcategories?
i think what most people want is the list from ip2location
I am not sure what kind of scripting you have to bread this out, but what about adding the ISO 3166-2 as a seperate data file
Pulling data from the official ISO website is probably a good idea anyway as it is the official source.
https://www.iso.org/obp/ui/#iso:pub:PUB500001:en
depending on your script you cold pull AA -ZZ and get all official ISO names/countries and the breakout of countries. like province/state/region etc.
I would ask you to remove the * from the sub area code names
Tanzania https://www.iso.org/obp/ui/#iso:code:3166:TZ