Revert "Use "sokil/php-isocodes" on SubdivisionCode"

This reverts commit 9c9c76ebfb.
This commit is contained in:
Henrique Moody 2021-03-19 14:59:31 +01:00
parent 745a5712eb
commit 4c21a7ffc9
No known key found for this signature in database
GPG key ID: 221E9281655813A6
258 changed files with 6780 additions and 33 deletions

98
bin/update-iso-codes Executable file
View file

@ -0,0 +1,98 @@
#!/usr/bin/env bash
# Usage: {script} TLD_FILENAME
# Update list of TLD
set -euo pipefail
declare -r IFS=$'\n'
declare -r REPOSITORY_URL="https://salsa.debian.org/iso-codes-team/iso-codes.git"
declare -r REPOSITORY_DIRECTORY=$(mktemp --directory)
declare -r LIBRARY_DIRECTORY="${1}"
clone_repository()
{
echo "Cloning repository ${REPOSITORY_URL}"
git clone --quiet "${REPOSITORY_URL}" "${REPOSITORY_DIRECTORY}"
}
list_iso_3166()
{
local -r number_of_items=${1}
local -r filename=${2}
for index in $(seq 0 ${number_of_items}); do
local json=$(jq ".[][${index}]" < "${filename}")
local alpha_2=$(jq ".alpha_2" <<< "${json}" | tr '"' "'")
local alpha_3=$(jq ".alpha_3" <<< "${json}" | tr '"' "'")
local numeric=$(jq ".numeric" <<< "${json}" | tr '"' "'")
local name=$(jq -r ".name" <<< "${json}")
echo " [${alpha_2}, ${alpha_3}, ${numeric}], // ${name}"
done
}
update_country_codes()
{
local -r iso_3166_1_filename="${REPOSITORY_DIRECTORY}/data/iso_3166-1.json"
local -r iso_3166_1_count=$(grep "alpha_3" "${iso_3166_1_filename}" | wc --lines)
local -r iso_3166_3_filename="${REPOSITORY_DIRECTORY}/data/iso_3166-3.json"
local -r iso_3166_3_count=$(grep "alpha_3" "${iso_3166_3_filename}" | wc --lines)
local -r temporary_filename=$(mktemp)
local -r country_rule_filename="${LIBRARY_DIRECTORY}/Rules/CountryCode.php"
echo "Updating country codes using ISO 3166-1 and ISO 3166-3"
{
sed -n '/^</,/ protected/p' "${country_rule_filename}"
{
list_iso_3166 $[iso_3166_1_count - 1] ${iso_3166_1_filename}
list_iso_3166 $[iso_3166_3_count - 1] ${iso_3166_3_filename}
} | sort
sed -n '/^ ]/,/^}/p' "${country_rule_filename}"
} > "${temporary_filename}"
mv "${temporary_filename}" "${country_rule_filename}"
}
rule_from_country_code()
{
local country_code=${1,,}
echo "${LIBRARY_DIRECTORY}/Rules/SubdivisionCode/${country_code^}SubdivisionCode.php"
}
update_subdivision_codes()
{
local -r iso_3166_2_filename="${REPOSITORY_DIRECTORY}/data/iso_3166-2.json"
local -r iso_3166_2_count=$(grep --word-regexp "code" "${iso_3166_2_filename}" | wc --lines)
local -r temporary_filename=$(mktemp)
local last_country_code=""
local last_country_rule=""
echo "Updating subdivision codes using ISO 3166-2"
for index in $(seq 0 $[iso_3166_2_count - 1]); do
local json=$(jq ".[][${index}]" < "${iso_3166_2_filename}")
local code=$(jq -r ".code" <<< "${json}")
local name=$(jq -r ".name" <<< "${json}")
local current_country_code=$(cut --delimiter "-" --fields 1 <<< "${code}")
local current_country_rule=$(rule_from_country_code ${current_country_code})
if [[ ${last_country_code} != ${current_country_code} ]] && [[ ! -z "${last_country_code}" ]]; then
sed -n '/^ \]/,/^}/p' "${last_country_rule}" >> "${temporary_filename}"
cat "${temporary_filename}" > "${last_country_rule}"
fi
if [[ ${last_country_code} != ${current_country_code} ]]; then
echo "- Updating ${current_country_code}"
sed -n '/^</,/public \$haystack = \[/p' "${current_country_rule}" > "${temporary_filename}"
fi
echo " '$(cut --delimiter "-" --fields 2 <<< ${code})', // ${name}" >> "${temporary_filename}"
last_country_code=${current_country_code}
last_country_rule=${current_country_rule}
done
}
clone_repository
update_country_codes
update_subdivision_codes

View file

@ -17,7 +17,6 @@
"require": {
"php": "^7.3 || ^8.0",
"respect/stringifier": "^0.2.0",
"sokil/php-isocodes": "^3.3",
"symfony/polyfill-mbstring": "^1.2"
},
"require-dev": {
@ -39,7 +38,6 @@
"ext-fileinfo": "File Information",
"ext-mbstring": "Multibyte String Functions",
"egulias/email-validator": "Strict (RFC compliant) email validation",
"sokil/php-isocodes": "To enable ISO codes validations",
"symfony/validator": "Use Symfony validator through Respect\\Validation",
"zendframework/zend-validator": "Use Zend Framework validator through Respect\\Validation"
},

13
data/iso_3166-2/AD.json Normal file
View file

@ -0,0 +1,13 @@
{
"source": "http://www.geonames.org/AD/administrative-division-andorra.html",
"country": "Andorra",
"subdivisions": {
"02": "Canillo",
"03": "Encamp",
"04": "La Massana",
"05": "Ordino",
"06": "Sant Julia de Lòria",
"07": "Andorra la Vella",
"08": "Escaldes-Engordany"
}
}

13
data/iso_3166-2/AE.json Normal file
View file

@ -0,0 +1,13 @@
{
"source": "http://www.geonames.org/AE/administrative-division-united-arab-emirates.html",
"country": "United Arab Emirates",
"subdivisions": {
"AJ": "'Ajman",
"AZ": "Abu Zaby",
"DU": "Dubayy",
"FU": "Al Fujayrah",
"RK": "R'as al Khaymah",
"SH": "Ash Shariqah",
"UQ": "Umm al Qaywayn"
}
}

40
data/iso_3166-2/AF.json Normal file
View file

@ -0,0 +1,40 @@
{
"source": "http://www.geonames.org/AF/administrative-division-afghanistan.html",
"country": "Afghanistan",
"subdivisions": {
"BAL": "Balkh province",
"BAM": "Bamian province",
"BDG": "Badghis province",
"BDS": "Badakhshan province",
"BGL": "Baghlan province",
"DAY": "Dāykundī",
"FRA": "Farah province",
"FYB": "Faryab province",
"GHA": "Ghazni province",
"GHO": "Ghowr province",
"HEL": "Helmand province",
"HER": "Herat province",
"JOW": "Jowzjan province",
"KAB": "Kabul province",
"KAN": "Kandahar province",
"KAP": "Kapisa province",
"KDZ": "Kondoz province",
"KHO": "Khost province",
"KNR": "Konar province",
"LAG": "Laghman province",
"LOG": "Lowgar province",
"NAN": "Nangrahar province",
"NIM": "Nimruz province",
"NUR": "Nurestan province",
"PAN": "Panjshir",
"PAR": "Parwan province",
"PIA": "Paktia province",
"PKA": "Paktika province",
"SAM": "Samangan province",
"SAR": "Sar-e Pol province",
"TAK": "Takhar province",
"URU": "Uruzgān province",
"WAR": "Wardak province",
"ZAB": "Zabol province"
}
}

14
data/iso_3166-2/AG.json Normal file
View file

@ -0,0 +1,14 @@
{
"source": "http://www.geonames.org/AG/administrative-division-antigua-and-barbuda.html",
"country": "Antigua and Barbuda",
"subdivisions": {
"03": "Saint George",
"04": "Saint John",
"05": "Saint Mary",
"06": "Saint Paul",
"07": "Saint Peter",
"08": "Saint Philip",
"10": "Barbuda",
"11": "Redonda"
}
}

5
data/iso_3166-2/AI.json Normal file
View file

@ -0,0 +1,5 @@
{
"source": "http://www.geonames.org/AI/administrative-division-anguilla.html",
"country": "Anguilla",
"subdivisions": []
}

54
data/iso_3166-2/AL.json Normal file
View file

@ -0,0 +1,54 @@
{
"source": "http://www.geonames.org/AL/administrative-division-albania.html",
"country": "Albania",
"subdivisions": {
"01": "Berat",
"02": "Durres",
"03": "Elbasan",
"04": "Fier",
"05": "Gjirokaster",
"06": "Korce",
"07": "Kukes",
"08": "Lezhe",
"09": "Diber",
"10": "Shkoder",
"11": "Tirane",
"12": "Vlore",
"BR": "Berat",
"BU": "Bulqize",
"DI": "Diber",
"DL": "Delvine",
"DR": "Durres",
"DV": "Devoll",
"EL": "Elbasan",
"ER": "Kolonje",
"FR": "Fier",
"GJ": "Gjirokaster",
"GR": "Gramsh",
"HA": "Has",
"KA": "Kavaje",
"KB": "Kurbin",
"KC": "Kucove",
"KO": "Korce",
"KR": "Kruje",
"KU": "Kukes",
"LB": "Librazhd",
"LE": "Lezhe",
"LU": "Lushnje",
"MK": "Mallakaster",
"MM": "Malesi e Madhe",
"MR": "Mirdite",
"MT": "Mat",
"PG": "Pogradec",
"PQ": "Peqin",
"PR": "Permet",
"PU": "Puke",
"SH": "Shkoder",
"SK": "Skrapar",
"SR": "Sarande",
"TE": "Tepelene",
"TP": "Tropoje",
"TR": "Tirane",
"VL": "Vlore"
}
}

17
data/iso_3166-2/AM.json Normal file
View file

@ -0,0 +1,17 @@
{
"source": "http://www.geonames.org/AM/administrative-division-armenia.html",
"country": "Armenia",
"subdivisions": {
"AG": "Aragatsotn",
"AR": "Ararat",
"AV": "Armavir",
"ER": "Yerevan",
"GR": "Geghark'unik'",
"KT": "Kotayk'",
"LO": "Lorri",
"SH": "Shirak",
"SU": "Syunik'",
"TV": "Tavush",
"VD": "Vayots' Dzor"
}
}

5
data/iso_3166-2/AN.json Normal file
View file

@ -0,0 +1,5 @@
{
"source": "http://www.geonames.org/AN/administrative-division-netherlands-antilles.html",
"country": "Netherlands Antilles",
"subdivisions": []
}

24
data/iso_3166-2/AO.json Normal file
View file

@ -0,0 +1,24 @@
{
"source": "http://www.geonames.org/AO/administrative-division-angola.html",
"country": "Angola",
"subdivisions": {
"BGO": "Bengo",
"BGU": "Benguela province",
"BIE": "Bie",
"CAB": "Cabinda",
"CCU": "Cuando-Cubango",
"CNN": "Cunene",
"CNO": "Cuanza Norte",
"CUS": "Cuanza Sul",
"HUA": "Huambo province",
"HUI": "Huila province",
"LNO": "Lunda Norte",
"LSU": "Lunda Sul",
"LUA": "Luanda",
"MAL": "Malange",
"MOX": "Moxico",
"NAM": "Namibe",
"UIG": "Uige",
"ZAI": "Zaire"
}
}

5
data/iso_3166-2/AQ.json Normal file
View file

@ -0,0 +1,5 @@
{
"source": "http://www.geonames.org/AQ/administrative-division-antarctica.html",
"country": "Antarctica",
"subdivisions": []
}

30
data/iso_3166-2/AR.json Normal file
View file

@ -0,0 +1,30 @@
{
"source": "http://www.geonames.org/AR/administrative-division-argentina.html",
"country": "Argentina",
"subdivisions": {
"A": "Salta",
"B": "Buenos Aires Province",
"C": "Ciudad Autónoma de Buenos Aires",
"D": "San Luis",
"E": "Entre Rios",
"F": "La Rioja",
"G": "Santiago del Estero",
"H": "Chaco",
"J": "San Juan",
"K": "Catamarca",
"L": "La Pampa",
"M": "Mendoza",
"N": "Misiones",
"P": "Formosa",
"Q": "Neuquen",
"R": "Rio Negro",
"S": "Santa Fe",
"T": "Tucuman",
"U": "Chubut",
"V": "Tierra del Fuego",
"W": "Corrientes",
"X": "Cordoba",
"Y": "Jujuy",
"Z": "Santa Cruz"
}
}

11
data/iso_3166-2/AS.json Normal file
View file

@ -0,0 +1,11 @@
{
"source": "http://www.geonames.org/AS/administrative-division-american-samoa.html",
"country": "American Samoa",
"subdivisions": {
"E": "Eastern",
"M": "Manu'a",
"R": "Rose Island",
"S": "Swains Island",
"W": "Western"
}
}

15
data/iso_3166-2/AT.json Normal file
View file

@ -0,0 +1,15 @@
{
"source": "http://www.geonames.org/AT/administrative-division-austria.html",
"country": "Austria",
"subdivisions": {
"1": "Burgenland",
"2": "Karnten",
"3": "Niederosterreich",
"4": "Oberosterreich",
"5": "Salzburg",
"6": "Steiermark",
"7": "Tirol",
"8": "Vorarlberg",
"9": "Wien"
}
}

14
data/iso_3166-2/AU.json Normal file
View file

@ -0,0 +1,14 @@
{
"source": "http://www.geonames.org/AU/administrative-division-australia.html",
"country": "Australia",
"subdivisions": {
"ACT": "Australian Capital Territory",
"NSW": "New South Wales",
"NT": "Northern Territory",
"QLD": "Queensland",
"SA": "South Australia",
"TAS": "Tasmania",
"VIC": "Victoria",
"WA": "Western Australia"
}
}

5
data/iso_3166-2/AW.json Normal file
View file

@ -0,0 +1,5 @@
{
"source": "http://www.geonames.org/AW/administrative-division-aruba.html",
"country": "Aruba",
"subdivisions": []
}

5
data/iso_3166-2/AX.json Normal file
View file

@ -0,0 +1,5 @@
{
"source": "http://www.geonames.org/AX/administrative-division-aland.html",
"country": "Åland",
"subdivisions": []
}

84
data/iso_3166-2/AZ.json Normal file
View file

@ -0,0 +1,84 @@
{
"source": "http://www.geonames.org/AZ/administrative-division-azerbaijan.html",
"country": "Azerbaijan",
"subdivisions": {
"ABS": "Abseron",
"AGA": "Agstafa",
"AGC": "AgcabAdi",
"AGM": "Agdam",
"AGS": "Agdas",
"AGU": "Agsu",
"AST": "Astara",
"BA": "Baki",
"BAB": "Babek",
"BAL": "BalakAn",
"BAR": "Barda",
"BEY": "Beylaqan",
"BIL": "Bilasuvar",
"CAB": "Cabrayil",
"CAL": "Calilabab",
"CUL": "Culfa",
"DAS": "Daskasan",
"FUZ": "Fuzuli",
"GA": "Ganca",
"GAD": "Gadabay",
"GOR": "Goranboy",
"GOY": "Goycay",
"GYG": "Göygöl",
"HAC": "Haciqabul",
"IMI": "Imisli",
"ISM": "Ismayilli",
"KAL": "Kalbacar",
"KAN": "Kangarli",
"KUR": "Kurdamir",
"LA": "Lankaran",
"LAC": "Lacin",
"LAN": "Lankaran Sahari",
"LER": "Lerik",
"MAS": "Masalli",
"MI": "Mingəçevir",
"NA": "Naftalan",
"NEF": "Neftcala",
"NV": "Naxçivan",
"NX": "Naxcivan",
"OGU": "Oguz",
"ORD": "Ordubad",
"QAB": "Qabala",
"QAX": "Qax",
"QAZ": "Qazax",
"QBA": "Quba",
"QBI": "Qubadli",
"QOB": "Qobustan",
"QUS": "Qusar",
"SA": "Saki",
"SAB": "Sabirabad",
"SAD": "Sadarak",
"SAH": "Sahbuz",
"SAK": "Saki Sahari",
"SAL": "Salyan",
"SAR": "Sarur",
"SAT": "Saatli",
"SBN": "Şabran",
"SIY": "Siyazan",
"SKR": "Samkir",
"SM": "Sumqayit",
"SMI": "Samaxi",
"SMX": "Samux",
"SR": "Şirvan",
"SUS": "Susa",
"TAR": "Tartar",
"TOV": "Tovuz",
"UCA": "Ucar",
"XA": "Xankandi",
"XAC": "Xacmaz",
"XCI": "Xocali",
"XIZ": "Xizi",
"XVD": "Xocavand",
"YAR": "Yardimli",
"YE": "Yevlax Sahari",
"YEV": "Yevlax",
"ZAN": "Zangilan",
"ZAQ": "Zaqatala",
"ZAR": "Zardab"
}
}

19
data/iso_3166-2/BA.json Normal file
View file

@ -0,0 +1,19 @@
{
"source": "http://www.geonames.org/BA/administrative-division-bosnia-and-herzegovina.html",
"country": "Bosnia and Herzegovina",
"subdivisions": {
"01": "Unsko-sanski kanton",
"02": "Posavski kanton",
"03": "Tuzlanski kanton",
"04": "Zeničko-dobojski kanton",
"05": "Bosansko-podrinjski kanton",
"06": "Srednjobosanski kantonn",
"07": "Hercegovačko-neretvanski kanton",
"08": "Zapadnohercegovački kanton",
"09": "Kanton Sarajevo",
"10": "Kanton br. 10 (Livanjski kanton)",
"BIH": "Federacija Bosna i Hercegovina",
"BRC": "Brcko District",
"SRP": "Republika Srpska"
}
}

17
data/iso_3166-2/BB.json Normal file
View file

@ -0,0 +1,17 @@
{
"source": "http://www.geonames.org/BB/administrative-division-barbados.html",
"country": "Barbados",
"subdivisions": {
"01": "Christ Church",
"02": "Saint Andrew",
"03": "Saint George",
"04": "Saint James",
"05": "Saint John",
"06": "Saint Joseph",
"07": "Saint Lucy",
"08": "Saint Michael",
"09": "Saint Peter",
"10": "Saint Philip",
"11": "Saint Thomas"
}
}

78
data/iso_3166-2/BD.json Normal file
View file

@ -0,0 +1,78 @@
{
"source": "http://www.geonames.org/BD/administrative-division-bangladesh.html",
"country": "Bangladesh",
"subdivisions": {
"01": "Bandarban zila",
"02": "Barguna zila",
"03": "Bogra zila",
"04": "Brahmanbaria zila",
"05": "Bagerhat zila",
"06": "Barisal zila",
"07": "Bhola zila",
"08": "Comilla zila",
"09": "Chandpur zila",
"10": "Chittagong zila",
"11": "Cox's Bazar zila",
"12": "Chuadanga zila",
"13": "Dhaka zila",
"14": "Dinajpur zila",
"15": "Faridpur zila",
"16": "Feni zila",
"17": "Gopalganj zila",
"18": "Gazipur zila",
"19": "Gaibandha zila",
"20": "Habiganj zila",
"21": "Jamalpur zila",
"22": "Jessore zila",
"23": "Jhenaidah zila",
"24": "Jaipurhat zila",
"25": "Jhalakati zila",
"26": "Kishoreganj zila",
"27": "Khulna zila",
"28": "Kurigram zila",
"29": "Khagrachari zila",
"30": "Kushtia zila",
"31": "Lakshmipur zila",
"32": "Lalmonirhat zila",
"33": "Manikganj zila",
"34": "Mymensingh zila",
"35": "Munshiganj zila",
"36": "Madaripur zila",
"37": "Magura zila",
"38": "Moulvibazar zila",
"39": "Meherpur zila",
"40": "Narayanganj zila",
"41": "Netrakona zila",
"42": "Narsingdi zila",
"43": "Narail zila",
"44": "Natore zila",
"45": "Nawabganj zila",
"46": "Nilphamari zila",
"47": "Noakhali zila",
"48": "Naogaon zila",
"49": "Pabna zila",
"50": "Pirojpur zila",
"51": "Patuakhali zila",
"52": "Panchagarh zila",
"53": "Rajbari zila",
"54": "Rajshahi zila",
"55": "Rangpur zila",
"56": "Rangamati zila",
"57": "Sherpur zila",
"58": "Satkhira zila",
"59": "Sirajganj zila",
"60": "Sylhet zila",
"61": "Sunamganj zila",
"62": "Shariatpur zila",
"63": "Tangail zila",
"64": "Thakurgaon zila",
"A": "Barisal",
"B": "Chittagong",
"C": "Dhaka",
"D": "Khulna",
"E": "Rajshahi",
"F": "Rangpur",
"G": "Sylhet",
"H": "Mymensingh Division"
}
}

19
data/iso_3166-2/BE.json Normal file
View file

@ -0,0 +1,19 @@
{
"source": "http://www.geonames.org/BE/administrative-division-belgium.html",
"country": "Belgium",
"subdivisions": {
"BRU": "Brussels",
"VAN": "Antwerpen",
"VBR": "Vlaams Brabant",
"VLG": "Flemish Region",
"VLI": "Limburg",
"VOV": "Oost-Vlaanderen",
"VWV": "West-Vlaanderen",
"WAL": "Wallonia",
"WBR": "Brabant Wallon",
"WHT": "Hainaut",
"WLG": "Liege",
"WLX": "Luxembourg",
"WNA": "Namur"
}
}

64
data/iso_3166-2/BF.json Normal file
View file

@ -0,0 +1,64 @@
{
"source": "http://www.geonames.org/BF/administrative-division-burkina-faso.html",
"country": "Burkina Faso",
"subdivisions": {
"01": "Boucle du Mouhoun",
"02": "Cascades",
"03": "Centre",
"04": "Centre-Est",
"05": "Centre-Nord",
"06": "Centre-Ouest",
"07": "Centre-Sud",
"08": "Est",
"09": "Hauts-Bassins",
"10": "Nord",
"11": "Plateau-Central",
"12": "Sahel",
"13": "Sud-Ouest",
"BAL": "Bale",
"BAM": "Bam",
"BAN": "Banwa",
"BAZ": "Bazega",
"BGR": "Bougouriba",
"BLG": "Boulgou",
"BLK": "Boulkiemde",
"COM": "Comoe",
"GAN": "Ganzourgou",
"GNA": "Gnagna",
"GOU": "Gourma",
"HOU": "Houet",
"IOB": "Ioba",
"KAD": "Kadiogo",
"KEN": "Kenedougou",
"KMD": "Komondjari",
"KMP": "Kompienga",
"KOP": "Koulpelogo",
"KOS": "Kossi",
"KOT": "Kouritenga",
"KOW": "Kourweogo",
"LER": "Leraba",
"LOR": "Loroum",
"MOU": "Mouhoun",
"NAM": "Namentenga",
"NAO": "Nahouri",
"NAY": "Nayala",
"NOU": "Noumbiel",
"OUB": "Oubritenga",
"OUD": "Oudalan",
"PAS": "Passore",
"PON": "Poni",
"SEN": "Seno",
"SIS": "Sissili",
"SMT": "Sanmatenga",
"SNG": "Sanguie",
"SOM": "Soum",
"SOR": "Sourou",
"TAP": "Tapoa",
"TUI": "Tuy",
"YAG": "Yagha",
"YAT": "Yatenga",
"ZIR": "Ziro",
"ZON": "Zondoma",
"ZOU": "Zoundweogo"
}
}

34
data/iso_3166-2/BG.json Normal file
View file

@ -0,0 +1,34 @@
{
"source": "http://www.geonames.org/BG/administrative-division-bulgaria.html",
"country": "Bulgaria",
"subdivisions": {
"01": "Blagoevgrad",
"02": "Burgas",
"03": "Varna",
"04": "Veliko Turnovo",
"05": "Vidin",
"06": "Vratsa",
"07": "Gabrovo",
"08": "Dobrich",
"09": "Kurdzhali",
"10": "Kyustendil",
"11": "Lovech",
"12": "Montana",
"13": "Pazardzhik",
"14": "Pernik",
"15": "Pleven",
"16": "Plovdiv",
"17": "Razgrad",
"18": "Ruse",
"19": "Silistra",
"20": "Sliven",
"21": "Smolyan",
"22": "Sofia Region",
"23": "Sofia",
"24": "Stara Zagora",
"25": "Turgovishte",
"26": "Khaskovo",
"27": "Shumen",
"28": "Yambol"
}
}

10
data/iso_3166-2/BH.json Normal file
View file

@ -0,0 +1,10 @@
{
"source": "http://www.geonames.org/BH/administrative-division-bahrain.html",
"country": "Bahrain",
"subdivisions": {
"13": "Capital",
"14": "Southern",
"15": "Muharraq",
"17": "Northern"
}
}

24
data/iso_3166-2/BI.json Normal file
View file

@ -0,0 +1,24 @@
{
"source": "http://www.geonames.org/BI/administrative-division-burundi.html",
"country": "Burundi",
"subdivisions": {
"BB": "Bubanza",
"BL": "Bujumbura Rural",
"BM": "Bujumbura Mairie",
"BR": "Bururi",
"CA": "Cankuzo",
"CI": "Cibitoke",
"GI": "Gitega",
"KI": "Kirundo",
"KR": "Karuzi",
"KY": "Kayanza",
"MA": "Makamba",
"MU": "Muramvya",
"MW": "Mwaro",
"MY": "Muyinga",
"NG": "Ngozi",
"RM": "Rumonge",
"RT": "Rutana",
"RY": "Ruyigi"
}
}

18
data/iso_3166-2/BJ.json Normal file
View file

@ -0,0 +1,18 @@
{
"source": "http://www.geonames.org/BJ/administrative-division-benin.html",
"country": "Benin",
"subdivisions": {
"AK": "Atakora",
"AL": "Alibori",
"AQ": "Atlantique",
"BO": "Borgou",
"CO": "Collines",
"DO": "Donga",
"KO": "Kouffo",
"LI": "Littoral",
"MO": "Mono",
"OU": "Oueme",
"PL": "Plateau",
"ZO": "Zou"
}
}

5
data/iso_3166-2/BL.json Normal file
View file

@ -0,0 +1,5 @@
{
"source": "http://www.geonames.org/BL/administrative-division-saint-barthelemy.html",
"country": "Saint Barthélemy",
"subdivisions": []
}

17
data/iso_3166-2/BM.json Normal file
View file

@ -0,0 +1,17 @@
{
"source": "http://www.geonames.org/BM/administrative-division-bermuda.html",
"country": "Bermuda",
"subdivisions": {
"DS": "Devonshire",
"GC": "Saint George",
"HA": "Hamilton",
"HC": "Hamilton City",
"PB": "Pembroke",
"PG": "Paget",
"SA": "Sandys",
"SG": "Saint George's",
"SH": "Southampton",
"SM": "Smith's",
"WA": "Warwick"
}
}

10
data/iso_3166-2/BN.json Normal file
View file

@ -0,0 +1,10 @@
{
"source": "http://www.geonames.org/BN/administrative-division-brunei.html",
"country": "Brunei",
"subdivisions": {
"BE": "Belait",
"BM": "Brunei and Muara",
"TE": "Temburong",
"TU": "Tutong"
}
}

15
data/iso_3166-2/BO.json Normal file
View file

@ -0,0 +1,15 @@
{
"source": "http://www.geonames.org/BO/administrative-division-bolivia.html",
"country": "Bolivia",
"subdivisions": {
"B": "Departmento Beni",
"C": "Departmento Cochabamba",
"H": "Departmento Chuquisaca",
"L": "Departmento La Paz",
"N": "Departmento Pando",
"O": "Departmento Oruro",
"P": "Departmento Potosi",
"S": "Departmento Santa Cruz",
"T": "Departmento Tarija"
}
}

9
data/iso_3166-2/BQ.json Normal file
View file

@ -0,0 +1,9 @@
{
"source": "http://www.geonames.org/BQ/administrative-division-bonaire.html",
"country": "Bonaire",
"subdivisions": {
"BO": "Bonaire",
"SA": "Saba",
"SE": "Sint Eustatius"
}
}

33
data/iso_3166-2/BR.json Normal file
View file

@ -0,0 +1,33 @@
{
"source": "http://www.geonames.org/BR/administrative-division-brazil.html",
"country": "Brazil",
"subdivisions": {
"AC": "Acre",
"AL": "Alagoas",
"AM": "Amazonas",
"AP": "Amapa",
"BA": "Bahia",
"CE": "Ceara",
"DF": "Distrito Federal",
"ES": "Espirito Santo",
"GO": "Goias",
"MA": "Maranhao",
"MG": "Minas Gerais",
"MS": "Mato Grosso do Sul",
"MT": "Mato Grosso",
"PA": "Para",
"PB": "Paraiba",
"PE": "Pernambuco",
"PI": "Piaui",
"PR": "Parana",
"RJ": "Rio de Janeiro",
"RN": "Rio Grande do Norte",
"RO": "Rondonia",
"RR": "Roraima",
"RS": "Rio Grande do Sul",
"SC": "Santa Catarina",
"SE": "Sergipe",
"SP": "Sao Paulo",
"TO": "Tocantins"
}
}

38
data/iso_3166-2/BS.json Normal file
View file

@ -0,0 +1,38 @@
{
"source": "http://www.geonames.org/BS/administrative-division-bahamas.html",
"country": "Bahamas",
"subdivisions": {
"AK": "Acklins Islands",
"BI": "Bimini and Cat Cay",
"BP": "Black Point",
"BY": "Berry Islands",
"CE": "Central Eleuthera",
"CI": "Cat Island",
"CK": "Crooked Island and Long Cay",
"CO": "Central Abaco",
"CS": "Central Andros",
"EG": "East Grand Bahama",
"EX": "Exuma",
"FP": "City of Freeport",
"GC": "Grand Cay",
"HI": "Harbour Island",
"HT": "Hope Town",
"IN": "Inagua",
"LI": "Long Island",
"MC": "Mangrove Cay",
"MG": "Mayaguana",
"MI": "Moore's Island",
"NE": "North Eleuthera",
"NO": "North Abaco",
"NP": "New Providence",
"NS": "North Andros",
"RC": "Rum Cay",
"RI": "Ragged Island",
"SA": "South Andros",
"SE": "South Eleuthera",
"SO": "South Abaco",
"SS": "San Salvador",
"SW": "Spanish Wells",
"WG": "West Grand Bahama"
}
}

26
data/iso_3166-2/BT.json Normal file
View file

@ -0,0 +1,26 @@
{
"source": "http://www.geonames.org/BT/administrative-division-bhutan.html",
"country": "Bhutan",
"subdivisions": {
"11": "Paro",
"12": "Chukha",
"13": "Haa",
"14": "Samtse",
"15": "Thimphu",
"21": "Tsirang",
"22": "Dagana",
"23": "Punakha",
"24": "Wangdue Phodrang",
"31": "Sarpang",
"32": "Trongsa",
"33": "Bumthang",
"34": "Zhemgang",
"41": "Trashigang",
"42": "Mongar",
"43": "Pemagatshel",
"44": "Lhuntse",
"45": "Samdrup Jongkhar",
"GA": "Gasa",
"TY": "Trashi Yangste"
}
}

5
data/iso_3166-2/BV.json Normal file
View file

@ -0,0 +1,5 @@
{
"source": "http://www.geonames.org/BV/administrative-division-bouvet-island.html",
"country": "Bouvet Island",
"subdivisions": []
}

22
data/iso_3166-2/BW.json Normal file
View file

@ -0,0 +1,22 @@
{
"source": "http://www.geonames.org/BW/administrative-division-botswana.html",
"country": "Botswana",
"subdivisions": {
"CE": "Central",
"CH": "Chobe",
"FR": "Francistown",
"GA": "Gaborone",
"GH": "Ghanzi",
"JW": "Jwaneng",
"KG": "Kgalagadi",
"KL": "Kgatleng",
"KW": "Kweneng",
"LO": "Lobatse",
"NE": "North East",
"NW": "North West",
"SE": "South East",
"SO": "Southern",
"SP": "Selibe Phikwe",
"ST": "Sowa Town"
}
}

13
data/iso_3166-2/BY.json Normal file
View file

@ -0,0 +1,13 @@
{
"source": "http://www.geonames.org/BY/administrative-division-belarus.html",
"country": "Belarus",
"subdivisions": {
"BR": "Brest voblast",
"HM": "Horad Minsk",
"HO": "Homyel voblast",
"HR": "Hrodna voblast",
"MA": "Mahilyow voblast",
"MI": "Minsk voblast",
"VI": "Vitsebsk voblast"
}
}

12
data/iso_3166-2/BZ.json Normal file
View file

@ -0,0 +1,12 @@
{
"source": "http://www.geonames.org/BZ/administrative-division-belize.html",
"country": "Belize",
"subdivisions": {
"BZ": "Belize District",
"CY": "Cayo District",
"CZL": "Corozal District",
"OW": "Orange Walk District",
"SC": "Stann Creek District",
"TOL": "Toledo District"
}
}

19
data/iso_3166-2/CA.json Normal file
View file

@ -0,0 +1,19 @@
{
"source": "http://www.geonames.org/CA/administrative-division-canada.html",
"country": "Canada",
"subdivisions": {
"AB": "Alberta",
"BC": "British Columbia",
"MB": "Manitoba",
"NB": "New Brunswick",
"NL": "Newfoundland and Labrador",
"NS": "Nova Scotia",
"NT": "Northwest Territories",
"NU": "Nunavut",
"ON": "Ontario",
"PE": "Prince Edward Island",
"QC": "Quebec",
"SK": "Saskatchewan",
"YT": "Yukon Territory"
}
}

11
data/iso_3166-2/CC.json Normal file
View file

@ -0,0 +1,11 @@
{
"source": "http://www.geonames.org/CC/administrative-division-cocos-islands.html",
"country": "Cocos [Keeling] Islands",
"subdivisions": {
"D": "Direction Island",
"H": "Home Island",
"O": "Horsburgh Island",
"S": "South Island",
"W": "West Island"
}
}

32
data/iso_3166-2/CD.json Normal file
View file

@ -0,0 +1,32 @@
{
"source": "http://www.geonames.org/CD/administrative-division-democratic-republic-of-the-congo.html",
"country": "Democratic Republic of the Congo",
"subdivisions": {
"BC": "Kongo Central",
"BU": "Bas-Uélé",
"EQ": "Équateur ",
"HK": "Haut-Katanga",
"HL": "Haut-Lomami",
"HU": "Haut-Uélé",
"IT": "Ituri",
"KC": "Kasaï Central",
"KE": "Kasai-Oriental",
"KG": "Kwango",
"KL": "Kwilu",
"KN": "Kinshasa",
"KS": "Kasaï",
"LO": "Lomami",
"LU": "Lualaba",
"MA": "Maniema",
"MN": "Mai-Ndombe",
"MO": "Mongala",
"NK": "Nord-Kivu",
"NU": "Nord-Ubangi",
"SA": "Sankuru",
"SK": "Sud-Kivu",
"SU": "Sud-Ubangi",
"TA": "Tanganyika",
"TO": "Tshopo",
"TU": "Tshuapa"
}
}

23
data/iso_3166-2/CF.json Normal file
View file

@ -0,0 +1,23 @@
{
"source": "http://www.geonames.org/CF/administrative-division-central-african-republic.html",
"country": "Central African Republic",
"subdivisions": {
"AC": "Ouham",
"BB": "Bamingui-Bangoran",
"BGF": "Bangui",
"BK": "Basse-Kotto",
"HK": "Haute-Kotto",
"HM": "Haut-Mbomou",
"HS": "Mambere-Kadeï",
"KB": "Nana-Grebizi",
"KG": "Kemo",
"LB": "Lobaye",
"MB": "Mbomou",
"MP": "Ombella-M'Poko",
"NM": "Nana-Mambere",
"OP": "Ouham-Pende",
"SE": "Sangha-Mbaere",
"UK": "Ouaka",
"VK": "Vakaga"
}
}

18
data/iso_3166-2/CG.json Normal file
View file

@ -0,0 +1,18 @@
{
"source": "http://www.geonames.org/CG/administrative-division-republic-of-the-congo.html",
"country": "Republic of the Congo",
"subdivisions": {
"11": "Bouenza",
"12": "Pool",
"13": "Sangha",
"14": "Plateaux",
"15": "Cuvette-Ouest",
"16": "Pointe-Noire",
"2": "Lekoumou",
"5": "Kouilou",
"7": "Likouala",
"8": "Cuvette",
"9": "Niari",
"BZV": "Brazzaville"
}
}

32
data/iso_3166-2/CH.json Normal file
View file

@ -0,0 +1,32 @@
{
"source": "http://www.geonames.org/CH/administrative-division-switzerland.html",
"country": "Switzerland",
"subdivisions": {
"AG": "Aargau",
"AI": "Appenzell Innerhoden",
"AR": "Appenzell Ausserrhoden",
"BE": "Bern",
"BL": "Basel-Landschaft",
"BS": "Basel-Stadt",
"FR": "Fribourg",
"GE": "Geneva",
"GL": "Glarus",
"GR": "Graubunden",
"JU": "Jura",
"LU": "Lucerne",
"NE": "Neuchâtel",
"NW": "Nidwalden",
"OW": "Obwalden",
"SG": "St. Gallen",
"SH": "Schaffhausen",
"SO": "Solothurn",
"SZ": "Schwyz",
"TG": "Thurgau",
"TI": "Ticino",
"UR": "Uri",
"VD": "Vaud",
"VS": "Valais",
"ZG": "Zug",
"ZH": "Zurich"
}
}

20
data/iso_3166-2/CI.json Normal file
View file

@ -0,0 +1,20 @@
{
"source": "http://www.geonames.org/CI/administrative-division-ivory-coast.html",
"country": "Ivory Coast",
"subdivisions": {
"AB": "Abidjan",
"BS": "Bas-Sassandra",
"CM": "Comoé",
"DN": "Denguélé",
"GD": "Gôh-Djiboua",
"LC": "Lacs",
"LG": "Lagunes",
"MG": "Montagnes",
"SM": "Sassandra-Marahoué",
"SV": "Savanes",
"VB": "Vallée du Bandama",
"WR": "Woroba",
"YM": "Yamoussoukro Autonomous District",
"ZZ": "Zanzan"
}
}

21
data/iso_3166-2/CK.json Normal file
View file

@ -0,0 +1,21 @@
{
"source": "http://www.geonames.org/CK/administrative-division-cook-islands.html",
"country": "Cook Islands",
"subdivisions": {
"AI": "Aitutaki",
"AT": "Atiu",
"MA": "Manuae",
"MG": "Mangaia",
"MK": "Manihiki",
"MT": "Mitiaro",
"MU": "Mauke",
"NI": "Nassau Island",
"PA": "Palmerston",
"PE": "Penrhyn",
"PU": "Pukapuka",
"RK": "Rakahanga",
"RR": "Rarotonga",
"SU": "Surwarrow",
"TA": "Takutea"
}
}

22
data/iso_3166-2/CL.json Normal file
View file

@ -0,0 +1,22 @@
{
"source": "http://www.geonames.org/CL/administrative-division-chile.html",
"country": "Chile",
"subdivisions": {
"AI": "Aisen del General Carlos Ibanez del Campo (XI)",
"AN": "Antofagasta (II)",
"AP": "Arica y Parinacota",
"AR": "Araucania (IX)",
"AT": "Atacama (III)",
"BI": "Bio-Bio (VIII)",
"CO": "Coquimbo (IV)",
"LI": "Libertador General Bernardo O'Higgins (VI)",
"LL": "Los Lagos (X)",
"LR": "Los Ríos",
"MA": "Magallanes (XII)",
"ML": "Maule (VII)",
"NB": "Ñuble",
"RM": "Region Metropolitana (RM)",
"TA": "Tarapaca (I)",
"VS": "Valparaiso (V)"
}
}

16
data/iso_3166-2/CM.json Normal file
View file

@ -0,0 +1,16 @@
{
"source": "http://www.geonames.org/CM/administrative-division-cameroon.html",
"country": "Cameroon",
"subdivisions": {
"AD": "Adamawa Province (Adamaoua)",
"CE": "Centre Province",
"EN": "Extreme North Province (Extrême-Nord)",
"ES": "East Province (Est)",
"LT": "Littoral Province",
"NO": "North Province (Nord)",
"NW": "Northwest Province (Nord-Ouest)",
"OU": "West Province (Ouest)",
"SU": "South Province (Sud)",
"SW": "Southwest Province (Sud-Ouest)."
}
}

40
data/iso_3166-2/CN.json Normal file
View file

@ -0,0 +1,40 @@
{
"source": "http://www.geonames.org/CN/administrative-division-china.html",
"country": "China",
"subdivisions": {
"AH": "Anhui",
"BJ": "Beijing",
"CQ": "Chongqìng",
"FJ": "Fujian",
"GD": "Guangdong",
"GS": "Gansu",
"GX": "Guangxi",
"GZ": "Guizhou",
"HA": "Henan",
"HB": "Hubei",
"HE": "Hebei",
"HI": "Hainan",
"HK": "Xianggang",
"HL": "Heilongjiang",
"HN": "Hunan",
"JL": "Jilin",
"JS": "Jiangsu",
"JX": "Jiangxi",
"LN": "Liaoning",
"MO": "Aomen",
"NM": "Nei Mongol",
"NX": "Ningxia",
"QH": "Qinghai",
"SC": "Sichuan",
"SD": "Shandong",
"SH": "Shanghai",
"SN": "Shaanxi",
"SX": "Shanxi",
"TJ": "Tianjin",
"TW": "Taiwan",
"XJ": "Xinjiang",
"XZ": "Xizang Zìzhìqu (Tibet)",
"YN": "Yunnan",
"ZJ": "Zhejiang"
}
}

39
data/iso_3166-2/CO.json Normal file
View file

@ -0,0 +1,39 @@
{
"source": "http://www.geonames.org/CO/administrative-division-colombia.html",
"country": "Colombia",
"subdivisions": {
"AMA": "Amazonas",
"ANT": "Antioquia",
"ARA": "Arauca",
"ATL": "Atlantico",
"BOL": "Bolivar",
"BOY": "Boyaca",
"CAL": "Caldas",
"CAQ": "Caqueta",
"CAS": "Casanare",
"CAU": "Cauca",
"CES": "Cesar",
"CHO": "Choco",
"COR": "Cordoba",
"CUN": "Cundinamarca",
"DC": "Bogota D.C.",
"GUA": "Guainia",
"GUV": "Guaviare",
"HUI": "Huila",
"LAG": "La Guajira",
"MAG": "Magdalena",
"MET": "Meta",
"NAR": "Narino",
"NSA": "Norte de Santander",
"PUT": "Putumayo",
"QUI": "Quindio",
"RIS": "Risaralda",
"SAN": "Santander",
"SAP": "San Andres y Providencia",
"SUC": "Sucre",
"TOL": "Tolima",
"VAC": "Valle del Cauca",
"VAU": "Vaupes",
"VID": "Vichada"
}
}

13
data/iso_3166-2/CR.json Normal file
View file

@ -0,0 +1,13 @@
{
"source": "http://www.geonames.org/CR/administrative-division-costa-rica.html",
"country": "Costa Rica",
"subdivisions": {
"A": "Alajuela",
"C": "Cartago",
"G": "Guanacaste",
"H": "Heredia",
"L": "Limon",
"P": "Puntarenas",
"SJ": "San Jose"
}
}

10
data/iso_3166-2/CS.json Normal file
View file

@ -0,0 +1,10 @@
{
"source": "http://www.geonames.org/CS/administrative-division-serbia-and-montenegro.html",
"country": "Serbia And Montenegro",
"subdivisions": {
"KOS": "Kosovo",
"MON": "Montenegro",
"SER": "Serbia",
"VOJ": "Vojvodina"
}
}

22
data/iso_3166-2/CU.json Normal file
View file

@ -0,0 +1,22 @@
{
"source": "http://www.geonames.org/CU/administrative-division-cuba.html",
"country": "Cuba",
"subdivisions": {
"01": "Pinar del Rio",
"03": "La Habana",
"04": "Matanzas",
"05": "Villa Clara",
"06": "Cienfuegos",
"07": "Sancti Spiritus",
"08": "Ciego de Avila",
"09": "Camaguey",
"10": "Las Tunas",
"11": "Holguin",
"12": "Granma",
"13": "Santiago de Cuba",
"14": "Guantanamo",
"15": "Artemisa",
"16": "Mayabeque",
"99": "Isla de la Juventud"
}
}

30
data/iso_3166-2/CV.json Normal file
View file

@ -0,0 +1,30 @@
{
"source": "http://www.geonames.org/CV/administrative-division-cape-verde.html",
"country": "Cape Verde",
"subdivisions": {
"B": "Ilhas de Barlavento",
"BR": "Brava",
"BV": "Boa Vista",
"CA": "Santa Catarina",
"CF": "Santa Catarina do Fogo",
"CR": "Santa Cruz",
"MA": "Maio",
"MO": "Mosteiros",
"PA": "Paul",
"PN": "Porto Novo",
"PR": "Praia",
"RB": "Ribeira Brava",
"RG": "Ribeira Grande",
"RS": "Ribeira Grande de Santiago",
"S": "Ilhas de Sotavento",
"SD": "Sao Domingos",
"SF": "Sao Filipe",
"SL": "Sal",
"SM": "São Miguel",
"SO": "São Lourenço dos Orgãos",
"SS": "São Salvador do Mundo",
"SV": "Sao Vicente",
"TA": "Tarrafal",
"TS": "Tarrafal de São Nicolau"
}
}

5
data/iso_3166-2/CW.json Normal file
View file

@ -0,0 +1,5 @@
{
"source": "http://www.geonames.org/CW/administrative-division-curacao.html",
"country": "Curacao",
"subdivisions": []
}

5
data/iso_3166-2/CX.json Normal file
View file

@ -0,0 +1,5 @@
{
"source": "http://www.geonames.org/CX/administrative-division-christmas-island.html",
"country": "Christmas Island",
"subdivisions": []
}

12
data/iso_3166-2/CY.json Normal file
View file

@ -0,0 +1,12 @@
{
"source": "http://www.geonames.org/CY/administrative-division-cyprus.html",
"country": "Cyprus",
"subdivisions": {
"01": "Lefkosía",
"02": "Lemesós",
"03": "Lárnaka",
"04": "Ammóchostos",
"05": "Páfos",
"06": "Kerýneia"
}
}

118
data/iso_3166-2/CZ.json Normal file
View file

@ -0,0 +1,118 @@
{
"source": "http://www.geonames.org/CZ/administrative-division-czech-republic.html",
"country": "Czechia",
"subdivisions": {
"10": "Prague - the Capital (Praha - hlavni mesto)",
"101": "Praha 1",
"102": "Praha 2",
"103": "Praha 3",
"104": "Praha 4",
"105": "Praha 5",
"106": "Praha 6",
"107": "Praha 7",
"108": "Praha 8",
"109": "Praha 9",
"110": "Praha 10",
"111": "Praha 11",
"112": "Praha 12",
"113": "Praha 13",
"114": "Praha 14",
"115": "Praha 15",
"116": "Praha 16",
"117": "Praha 17",
"118": "Praha 18",
"119": "Praha 19",
"120": "Praha 20",
"121": "Praha 21",
"122": "Praha 22",
"20": "Central Bohemian Region (Stredocesky kraj)",
"201": "Benešov",
"202": "Beroun",
"203": "Kladno",
"204": "Kolín",
"205": "Kutná Hora",
"206": "Mělník",
"207": "Mladá Boleslav",
"208": "Nymburk",
"209": "Praha-východ",
"20A": "Praha-západ",
"20B": "Příbram",
"20C": "Rakovník",
"31": "South Bohemian Region (Jihocesky kraj)",
"311": "České Budějovice",
"312": "Český Krumlov",
"313": "Jindřichův Hradec",
"314": "Písek",
"315": "Prachatice",
"316": "Strakonice",
"317": "Tábor",
"32": "Plzen( Region Plzensky kraj)",
"321": "Domažlice",
"322": "Klatovy",
"323": "Plzeň-město",
"324": "Plzeň-jih",
"325": "Plzeň-sever",
"326": "Rokycany",
"327": "Tachov",
"41": "Carlsbad Region (Karlovarsky kraj)",
"411": "Cheb",
"412": "Karlovy Vary",
"413": "Sokolov",
"42": "Usti nad Labem Region (Ustecky kraj)",
"421": "Děčín",
"422": "Chomutov",
"423": "Litoměřice",
"424": "Louny",
"425": "Most",
"426": "Teplice",
"427": "Ústí nad Labem",
"51": "Liberec Region (Liberecky kraj)",
"511": "Česká Lípa",
"512": "Jablonec nad Nisou",
"513": "Liberec",
"514": "Semily",
"52": "Hradec Kralove Region (Kralovehradecky kraj)",
"521": "Hradec Králové",
"522": "Jičín",
"523": "Náchod",
"524": "Rychnov nad Kněžnou",
"525": "Trutnov",
"53": "Pardubice Region (Pardubicky kraj)",
"531": "Chrudim",
"532": "Pardubice",
"533": "Svitavy",
"534": "Ústí nad Orlicí",
"63": "Vysocina Region (kraj Vysocina)",
"631": "Havlíčkův Brod",
"632": "Jihlava",
"633": "Pelhřimov",
"634": "Třebíč",
"635": "Ždár nad Sázavou",
"64": "South Moravian Region (Jihomoravsky kraj)",
"641": "Blansko",
"642": "Brno-město",
"643": "Brno-venkov",
"644": "Břeclav",
"645": "Hodonín",
"646": "Vyškov",
"647": "Znojmo",
"71": "Olomouc Region (Olomoucky kraj)",
"711": "Jeseník",
"712": "Olomouc",
"713": "Prostĕjov",
"714": "Přerov",
"715": "Šumperk",
"72": "Zlin Region (Zlinsky kraj)",
"721": "Kromĕříž",
"722": "Uherské Hradištĕ",
"723": "Vsetín",
"724": "Zlín",
"80": "Moravian-Silesian Region (Moravskoslezsky kraj)",
"801": "Bruntál",
"802": "Frýdek - Místek",
"803": "Karviná",
"804": "Nový Jičín",
"805": "Opava",
"806": "Ostrava - město"
}
}

22
data/iso_3166-2/DE.json Normal file
View file

@ -0,0 +1,22 @@
{
"source": "http://www.geonames.org/DE/administrative-division-germany.html",
"country": "Germany",
"subdivisions": {
"BB": "Brandenburg",
"BE": "Berlin",
"BW": "Baden-Württemberg",
"BY": "Bayern",
"HB": "Bremen",
"HE": "Hessen",
"HH": "Hamburg",
"MV": "Mecklenburg-Vorpommern",
"NI": "Niedersachsen",
"NW": "Nordrhein-Westfalen",
"RP": "Rheinland-Pfalz",
"SH": "Schleswig-Holstein",
"SL": "Saarland",
"SN": "Sachsen",
"ST": "Sachsen-Anhalt",
"TH": "Thüringen"
}
}

12
data/iso_3166-2/DJ.json Normal file
View file

@ -0,0 +1,12 @@
{
"source": "http://www.geonames.org/DJ/administrative-division-djibouti.html",
"country": "Djibouti",
"subdivisions": {
"AR": "Arta",
"AS": "'Ali Sabih",
"DI": "Dikhil",
"DJ": "Djibouti",
"OB": "Obock",
"TA": "Tadjoura"
}
}

11
data/iso_3166-2/DK.json Normal file
View file

@ -0,0 +1,11 @@
{
"source": "http://www.geonames.org/DK/administrative-division-denmark.html",
"country": "Denmark",
"subdivisions": {
"81": "Region Nordjylland",
"82": "Region Midtjylland",
"83": "Region Syddanmark",
"84": "Region Hovedstaden",
"85": "Region Sjæland"
}
}

16
data/iso_3166-2/DM.json Normal file
View file

@ -0,0 +1,16 @@
{
"source": "http://www.geonames.org/DM/administrative-division-dominica.html",
"country": "Dominica",
"subdivisions": {
"02": "Saint Andrew Parish",
"03": "Saint David Parish",
"04": "Saint George Parish",
"05": "Saint John Parish",
"06": "Saint Joseph Parish",
"07": "Saint Luke Parish",
"08": "Saint Mark Parish",
"09": "Saint Patrick Parish",
"10": "Saint Paul Parish",
"11": "Saint Peter Parish"
}
}

38
data/iso_3166-2/DO.json Normal file
View file

@ -0,0 +1,38 @@
{
"source": "http://www.geonames.org/DO/administrative-division-dominican-republic.html",
"country": "Dominican Republic",
"subdivisions": {
"01": "Distrito Nacional",
"02": "Azua",
"03": "Baoruco",
"04": "Barahona",
"05": "Dajabon",
"06": "Duarte",
"07": "Elias Pina",
"08": "El Seybo",
"09": "Espaillat",
"10": "Independencia",
"11": "La Altagracia",
"12": "La Romana",
"13": "La Vega",
"14": "Maria Trinidad Sanchez",
"15": "Monte Cristi",
"16": "Pedernales",
"17": "Peravia (Bani)",
"18": "Puerto Plata",
"19": "Salcedo",
"20": "Samana",
"21": "San Cristobal",
"22": "San Juan",
"23": "San Pedro de Macoris",
"24": "Sanchez Ramirez",
"25": "Santiago",
"26": "Santiago Rodriguez",
"27": "Valverde",
"28": "Monsenor Nouel",
"29": "Monte Plata",
"30": "Hato Mayor",
"31": "San Jose de Ocoa",
"32": "Santo Domingo"
}
}

54
data/iso_3166-2/DZ.json Normal file
View file

@ -0,0 +1,54 @@
{
"source": "http://www.geonames.org/DZ/administrative-division-algeria.html",
"country": "Algeria",
"subdivisions": {
"01": "Adrar",
"02": "Chlef",
"03": "Laghouat",
"04": "Oum el-Bouaghi",
"05": "Batna",
"06": "Bejaia",
"07": "Biskra",
"08": "Bechar",
"09": "Blida",
"10": "Bouira",
"11": "Tamanghasset",
"12": "Tebessa",
"13": "Tlemcen",
"14": "Tiaret",
"15": "Tizi Ouzou",
"16": "Alger",
"17": "Djelfa",
"18": "Jijel",
"19": "Setif",
"20": "Saida",
"21": "Skikda",
"22": "Sidi Bel Abbes",
"23": "Annaba",
"24": "Guelma",
"25": "Constantine",
"26": "Medea",
"27": "Mostaganem",
"28": "M'Sila",
"29": "Muaskar",
"30": "Ouargla",
"31": "Oran",
"32": "El Bayadh",
"33": "Illizi",
"34": "Bordj Bou Arreridj",
"35": "Boumerdes",
"36": "El Tarf",
"37": "Tindouf",
"38": "Tissemsilt",
"39": "El Oued",
"40": "Khenchela",
"41": "Souk Ahras",
"42": "Tipaza",
"43": "Mila",
"44": "Ain Defla",
"45": "Naama",
"46": "Ain Temouchent",
"47": "Ghardaia",
"48": "Relizane"
}
}

30
data/iso_3166-2/EC.json Normal file
View file

@ -0,0 +1,30 @@
{
"source": "http://www.geonames.org/EC/administrative-division-ecuador.html",
"country": "Ecuador",
"subdivisions": {
"A": "Azuay",
"B": "Bolivar",
"C": "Carchi",
"D": "Orellana",
"E": "Esmeraldas",
"F": "Canar",
"G": "Guayas",
"H": "Chimborazo",
"I": "Imbabura",
"L": "Loja",
"M": "Manabi",
"N": "Napo",
"O": "El Oro",
"P": "Pichincha",
"R": "Los Rios",
"S": "Morona-Santiago",
"SD": "Santo Domingo de los Tsáchilas",
"SE": "Santa Elena",
"T": "Tungurahua",
"U": "Sucumbios",
"W": "Galapagos",
"X": "Cotopaxi",
"Y": "Pastaza",
"Z": "Zamora-Chinchipe"
}
}

21
data/iso_3166-2/EE.json Normal file
View file

@ -0,0 +1,21 @@
{
"source": "http://www.geonames.org/EE/administrative-division-estonia.html",
"country": "Estonia",
"subdivisions": {
"37": "Harju County",
"39": "Hiiu County",
"44": "Ida-Viru County",
"49": "Jõgeva County",
"51": "Järva County",
"57": "Lääne County",
"59": "Lääne-Viru County",
"65": "Põlva County",
"67": "Pärnu County",
"70": "Rapla County",
"74": "Saare County",
"78": "Tartu County",
"82": "Valga County",
"84": "Viljandi County",
"86": "Võru County"
}
}

33
data/iso_3166-2/EG.json Normal file
View file

@ -0,0 +1,33 @@
{
"source": "http://www.geonames.org/EG/administrative-division-egypt.html",
"country": "Egypt",
"subdivisions": {
"ALX": "Al Iskandariyah",
"ASN": "Aswan",
"AST": "Asyut",
"BA": "Al Bahr al Ahmar",
"BH": "Al Buhayrah",
"BNS": "Bani Suwayf",
"C": "Al Qahirah",
"DK": "Ad Daqahliyah",
"DT": "Dumyat",
"FYM": "Al Fayyum",
"GH": "Al Gharbiyah",
"GZ": "Al Jizah",
"IS": "Al Isma'iliyah",
"JS": "Janub Sina'",
"KB": "Al Qalyubiyah",
"KFS": "Kafr ash Shaykh",
"KN": "Qina",
"LX": "Al Uqşur",
"MN": "Al Minya",
"MNF": "Al Minufiyah",
"MT": "Matruh",
"PTS": "Bur Sa'id",
"SHG": "Suhaj",
"SHR": "Ash Sharqiyah",
"SIN": "Shamal Sina'",
"SUZ": "As Suways",
"WAD": "Al Wadi al Jadid"
}
}

5
data/iso_3166-2/EH.json Normal file
View file

@ -0,0 +1,5 @@
{
"source": "http://www.geonames.org/EH/administrative-division-western-sahara.html",
"country": "Western Sahara",
"subdivisions": []
}

12
data/iso_3166-2/ER.json Normal file
View file

@ -0,0 +1,12 @@
{
"source": "http://www.geonames.org/ER/administrative-division-eritrea.html",
"country": "Eritrea",
"subdivisions": {
"AN": "Anseba (Keren)",
"DK": "Southern Red Sea (Debub-Keih-Bahri)",
"DU": "Southern (Debub)",
"GB": "Gash-Barka (Barentu)",
"MA": "Central (Maekel)",
"SK": "Northern Red Sea (Semien-Keih-Bahri)"
}
}

75
data/iso_3166-2/ES.json Normal file
View file

@ -0,0 +1,75 @@
{
"source": "http://www.geonames.org/ES/administrative-division-spain.html",
"country": "Spain",
"subdivisions": {
"A": "Alicante",
"AB": "Albacete",
"AL": "Almería",
"AN": "Comunidad Autónoma de Andalucía",
"AR": "Comunidad Autónoma de Aragón",
"AS": "Comunidad Autónoma del Principado de Asturias",
"AV": "Ávila",
"B": "Barcelona",
"BA": "Badajoz",
"BI": "Vizcaya",
"BU": "Burgos",
"C": "A Coruña",
"CA": "Cádiz",
"CB": "Comunidad Autónoma de Cantabria",
"CC": "Cáceres",
"CE": "Ceuta",
"CL": "Comunidad Autónoma de Castilla y León",
"CM": "Comunidad Autónoma de Castilla-La Mancha",
"CN": "Comunidad Autónoma de Canarias",
"CO": "Córdoba",
"CR": "Ciudad Real",
"CS": "Castellón",
"CT": "Catalunya",
"CU": "Cuenca",
"EX": "Comunidad Autónoma de Extremadura",
"GA": "Comunidad Autónoma de Galicia",
"GC": "Las Palmas",
"GI": "Girona",
"GR": "Granada",
"GU": "Guadalajara",
"H": "Huelva",
"HU": "Huesca",
"IB": "Comunidad Autónoma de las Islas Baleares",
"J": "Jaén",
"L": "Lleida",
"LE": "León",
"LO": "La Rioja",
"LU": "Lugo",
"M": "Madrid",
"MA": "Málaga",
"MC": "Comunidad Autónoma de la Región de Murcia",
"MD": "Comunidad de Madrid",
"ML": "Melilla",
"MU": "Murcia",
"NA": "Navarra",
"NC": "Comunidad Foral de Navarra",
"O": "Asturias",
"OR": "Ourense",
"P": "Palencia",
"PM": "Baleares",
"PO": "Pontevedra",
"PV": "Euskal Autonomia Erkidegoa",
"RI": "Comunidad Autónoma de La Rioja",
"S": "Cantabria",
"SA": "Salamanca",
"SE": "Sevilla",
"SG": "Segovia",
"SO": "Soria",
"SS": "Guipúzcoa",
"T": "Tarragona",
"TE": "Teruel",
"TF": "Santa Cruz de Tenerife",
"TO": "Toledo",
"V": "Valencia",
"VA": "Valladolid",
"VC": "Comunidad Valenciana",
"VI": "Álava",
"Z": "Zaragoza",
"ZA": "Zamora"
}
}

17
data/iso_3166-2/ET.json Normal file
View file

@ -0,0 +1,17 @@
{
"source": "http://www.geonames.org/ET/administrative-division-ethiopia.html",
"country": "Ethiopia",
"subdivisions": {
"AA": "Addis Ababa",
"AF": "Afar",
"AM": "Amhara",
"BE": "Benishangul-Gumaz",
"DD": "Dire Dawa",
"GA": "Gambela",
"HA": "Hariai",
"OR": "Oromia",
"SN": "Southern Nations - Nationalities and Peoples Region",
"SO": "Somali",
"TI": "Tigray"
}
}

25
data/iso_3166-2/FI.json Normal file
View file

@ -0,0 +1,25 @@
{
"source": "http://www.geonames.org/FI/administrative-division-finland.html",
"country": "Finland",
"subdivisions": {
"01": "Ahvenanmaa [Finnish] / Åland [Swedish]",
"02": "Etelä-Karjala [Finnish] / Södra Karelen [Swedish]",
"03": "Etelä-Pohjanmaa [Finnish] / Södra Österbotten [Swedish]",
"04": "Etelä-Savo [Finnish] / Södra Savolax [Swedish]",
"05": "Kainuu [Finnish] / Kajanaland [Swedish]",
"06": "Kanta-Häme [Finnish] / Egentliga Tavastland [Swedish]",
"07": "Keski-Pohjanmaa [Finnish] / Mellersta Österbotten [Swedish]",
"08": "Keski-Suomi [Finnish] / Mellersta Finland [Swedish]",
"09": "Kymenlaakso [Finnish] / Kymmenedalen [Swedish]",
"10": "Lappi [Finnish] / Lappland [Swedish]",
"11": "Pirkanmaa [Finnish] / Birkaland [Swedish]",
"12": "Pohjanmaa [Finnish] / Österbotten [Swedish]",
"13": "Pohjois-Karjala [Finnish] / Norra Karelen [Swedish]",
"14": "Pohjois-Pohjanmaa [Finnish] / Norra Österbotten [Swedish]",
"15": "Pohjois-Savo [Finnish] / Norra Savolax [Swedish]",
"16": "Päijät-Häme [Finnish] / Päijänne-Tavastland [Swedish]",
"17": "Satakunta [Finnish and Swedish]",
"18": "Uusimaa [Finnish] / Nyland [Swedish]",
"19": "Varsinais-Suomi [Finnish] / Egentliga Finland [Swedish]"
}
}

25
data/iso_3166-2/FJ.json Normal file
View file

@ -0,0 +1,25 @@
{
"source": "http://www.geonames.org/FJ/administrative-division-fiji.html",
"country": "Fiji",
"subdivisions": {
"01": "Ba Province",
"02": "Bua Province",
"03": "Cakaudrove Province",
"04": "Kadavu Province",
"05": "Lau Province",
"06": "Lomaiviti Province",
"07": "Mathuata Province",
"08": "Nandronga and Navosa Province",
"09": "Naitasiri Province",
"10": "Namosi Province",
"11": "Ra Province",
"12": "Rewa Province",
"13": "Serua Province",
"14": "Tailevu Province",
"C": "Central Division",
"E": "Eastern Division",
"N": "Northern Division",
"R": "Rotuma",
"W": "Western Division"
}
}

5
data/iso_3166-2/FK.json Normal file
View file

@ -0,0 +1,5 @@
{
"source": "http://www.geonames.org/FK/administrative-division-falkland-islands.html",
"country": "Falkland Islands",
"subdivisions": []
}

10
data/iso_3166-2/FM.json Normal file
View file

@ -0,0 +1,10 @@
{
"source": "http://www.geonames.org/FM/administrative-division-micronesia.html",
"country": "Micronesia",
"subdivisions": {
"KSA": "Kosrae",
"PNI": "Pohnpei",
"TRK": "Chuuk",
"YAP": "Yap"
}
}

5
data/iso_3166-2/FO.json Normal file
View file

@ -0,0 +1,5 @@
{
"source": "http://www.geonames.org/FO/administrative-division-faroe-islands.html",
"country": "Faroe Islands",
"subdivisions": []
}

124
data/iso_3166-2/FR.json Normal file
View file

@ -0,0 +1,124 @@
{
"source": "http://www.geonames.org/FR/administrative-division-france.html",
"country": "France",
"subdivisions": {
"01": "Ain",
"02": "Aisne",
"03": "Allier",
"04": "Alpes-de-Haute-Provence",
"05": "Hautes-Alpes",
"06": "Alpes-Maritimes",
"07": "Ardèche",
"08": "Ardennes",
"09": "Ariège",
"10": "Aube",
"11": "Aude",
"12": "Aveyron",
"13": "Bouches-du-Rhône",
"14": "Calvados",
"15": "Cantal",
"16": "Charente",
"17": "Charente-Maritime",
"18": "Cher",
"19": "Corrèze",
"21": "Côte-d'Or",
"22": "Côtes-d'Armor",
"23": "Creuse",
"24": "Dordogne",
"25": "Doubs",
"26": "Drôme",
"27": "Eure",
"28": "Eure-et-Loir",
"29": "Finistère",
"2A": "Corse-du-Sud",
"2B": "Haute-Corse",
"30": "Gard",
"31": "Haute-Garonne",
"32": "Gers",
"33": "Gironde",
"34": "Hérault",
"35": "Ille-et-Vilaine",
"36": "Indre",
"37": "Indre-et-Loire",
"38": "Isère",
"39": "Jura",
"40": "Landes",
"41": "Loir-et-Cher",
"42": "Loire",
"43": "Haute-Loire",
"44": "Loire-Atlantique",
"45": "Loiret",
"46": "Lot",
"47": "Lot-et-Garonne",
"48": "Lozère",
"49": "Maine-et-Loire",
"50": "Manche",
"51": "Marne",
"52": "Haute-Marne",
"53": "Mayenne",
"54": "Meurthe-et-Moselle",
"55": "Meuse",
"56": "Morbihan",
"57": "Moselle",
"58": "Nièvre",
"59": "Nord",
"60": "Oise",
"61": "Orne",
"62": "Pas-de-Calais",
"63": "Puy-de-Dôme",
"64": "Pyrénées-Atlantiques",
"65": "Hautes-Pyrénées",
"66": "Pyrénées-Orientales",
"67": "Bas-Rhin",
"68": "Haut-Rhin",
"69": "Rhône",
"70": "Haute-Saône",
"71": "Saône-et-Loire",
"72": "Sarthe",
"73": "Savoie",
"74": "Haute-Savoie",
"75": "Paris",
"76": "Seine-Maritime",
"77": "Seine-et-Marne",
"78": "Yvelines",
"79": "Deux-Sèvres",
"80": "Somme",
"81": "Tarn",
"82": "Tarn-et-Garonne",
"83": "Var",
"84": "Vaucluse",
"85": "Vendée",
"86": "Vienne",
"87": "Haute-Vienne",
"88": "Vosges",
"89": "Yonne",
"90": "Territoire de Belfort",
"91": "Essonne",
"92": "Hauts-de-Seine",
"93": "Seine-Saint-Denis",
"94": "Val-de-Marne",
"95": "Val-d'Oise",
"ARA": "Auvergne-Rhône-Alpes",
"BFC": "Bourgogne-Franche-Comté",
"BL": "Saint Barthélemy (see also separate ISO 3166-1 entry under BL)",
"BRE": "Bretagne",
"COR": "Corse",
"CP": "Clipperton",
"CVL": "Centre-Val de Loire",
"GES": "Grand Est",
"HDF": "Hauts-de-France",
"IDF": "Île-de-France",
"MF": "Saint Martin (see also separate ISO 3166-1 entry under MF)",
"NAQ": "Nouvelle-Aquitaine",
"NC": "Nouvelle-Calédonie (see also separate ISO 3166-1 entry under NC)",
"NOR": "Normandy",
"OCC": "Occitanie",
"PAC": "Provence-Alpes-Côte d'Azur",
"PDL": "Pays de la Loire",
"PF": "Polynésie française (see also separate ISO 3166-1 entry under PF)",
"PM": "Saint-Pierre-et-Miquelon (see also separate ISO 3166-1 entry under PM)",
"TF": "Terres Australes Françaises (see also separate ISO 3166-1 entry under TF)",
"WF": "Wallis et Futuna (see also separate ISO 3166-1 entry under WF)",
"YT": "Mayotte (see also separate ISO 3166-1 entry under YT)"
}
}

15
data/iso_3166-2/GA.json Normal file
View file

@ -0,0 +1,15 @@
{
"source": "http://www.geonames.org/GA/administrative-division-gabon.html",
"country": "Gabon",
"subdivisions": {
"1": "Estuaire",
"2": "Haut-Ogooue",
"3": "Moyen-Ogooue",
"4": "Ngounie",
"5": "Nyanga",
"6": "Ogooue-Ivindo",
"7": "Ogooue-Lolo",
"8": "Ogooue-Maritime",
"9": "Woleu-Ntem"
}
}

227
data/iso_3166-2/GB.json Normal file
View file

@ -0,0 +1,227 @@
{
"source": "http://www.geonames.org/GB/administrative-division-united-kingdom.html",
"country": "United Kingdom",
"subdivisions": {
"ABC": "Armagh City Banbridge and Craigavon",
"ABD": "Aberdeenshire",
"ABE": "Aberdeen",
"AGB": "Argyll and Bute",
"AGY": "Isle of Anglesey",
"AND": "Ards and North Down",
"ANN": "Antrim and Newtownabbey",
"ANS": "Angus",
"BAS": "Bath and North East Somerset",
"BBD": "Blackburn with Darwen",
"BDF": "Bedford",
"BDG": "Barking and Dagenham",
"BEN": "Brent",
"BEX": "Bexley",
"BFS": "Belfast",
"BGE": "Bridgend",
"BGW": "Blaenau Gwent",
"BIR": "Birmingham",
"BKM": "Buckinghamshire",
"BMH": "Bournemouth",
"BNE": "Barnet",
"BNH": "Brighton and Hove",
"BNS": "Barnsley",
"BOL": "Bolton",
"BPL": "Blackpool",
"BRC": "Bracknell Forest",
"BRD": "Bradford",
"BRY": "Bromley",
"BST": "Bristol City of",
"BUR": "Bury",
"CAM": "Cambridgeshire",
"CAY": "Caerphilly",
"CBF": "Central Bedfordshire",
"CCG": "Causeway Coast and Glens",
"CGN": "Ceredigion",
"CHE": "Cheshire East",
"CHW": "Cheshire West and Chester",
"CLD": "Calderdale",
"CLK": "Clackmannanshire",
"CMA": "Cumbria",
"CMD": "Camden",
"CMN": "Carmarthenshire",
"CON": "Cornwall",
"COV": "Coventry (West Midlands district)",
"CRF": "Cardiff",
"CRY": "Croydon",
"CWY": "Conwy",
"DAL": "Darlington",
"DBY": "Derbyshire",
"DEN": "Denbighshire",
"DER": "Derby",
"DEV": "Devon",
"DGY": "Dumfries and Galloway",
"DNC": "Doncaster",
"DND": "Dundee",
"DOR": "Dorset",
"DRS": "Derry City and Strabane",
"DUD": "Dudley (West Midlands district)",
"DUR": "Durham",
"EAL": "Ealing",
"EAY": "East Ayrshire",
"EDH": "Edinburgh",
"EDU": "East Dunbartonshire",
"ELN": "East Lothian",
"ELS": "Eilean Siar",
"ENF": "Enfield",
"ENG": "England",
"ERW": "East Renfrewshire",
"ERY": "East Riding of Yorkshire",
"ESS": "Essex",
"ESX": "East Sussex",
"FAL": "Falkirk",
"FIF": "Fife",
"FLN": "Flintshire",
"FMO": "Fermanagh and Omagh",
"GAT": "Gateshead (Tyne",
"GLG": "Glasgow",
"GLS": "Gloucestershire",
"GRE": "Greenwich",
"GWN": "Gwynedd",
"HAL": "Halton",
"HAM": "Hampshire",
"HAV": "Havering",
"HCK": "Hackney",
"HEF": "Herefordshire County of",
"HIL": "Hillingdon",
"HLD": "Highland",
"HMF": "Hammersmith and Fulham",
"HNS": "Hounslow",
"HPL": "Hartlepool",
"HRT": "Hertfordshire",
"HRW": "Harrow",
"HRY": "Haringey",
"IOS": "Isles of Scilly",
"IOW": "Isle of Wight",
"ISL": "Islington",
"IVC": "Inverclyde",
"KEC": "Kensington and Chelsea",
"KEN": "Kent",
"KHL": "Kingston upon Hull City of",
"KIR": "Kirklees",
"KTT": "Kingston upon Thames",
"KWL": "Knowsley",
"LAN": "Lancashire",
"LBC": "Lisburn and Castlereagh",
"LBH": "Lambeth",
"LCE": "Leicester",
"LDS": "Leeds",
"LEC": "Leicestershire",
"LEW": "Lewisham",
"LIN": "Lincolnshire",
"LIV": "Liverpool",
"LND": "London City of",
"LUT": "Luton",
"MAN": "Manchester",
"MDB": "Middlesbrough",
"MDW": "Medway",
"MEA": "Mid and East Antrim",
"MIK": "Milton Keynes",
"MLN": "Midlothian",
"MON": "Monmouthshire",
"MRT": "Merton",
"MRY": "Moray",
"MTY": "Merthyr Tydfil",
"MUL": "Mid Ulster",
"NAY": "North Ayrshire",
"NBL": "Northumberland",
"NEL": "North East Lincolnshire",
"NET": "Newcastle upon Tyne",
"NFK": "Norfolk",
"NGM": "Nottingham",
"NIR": "Northern Ireland",
"NLK": "North Lanarkshire",
"NLN": "North Lincolnshire",
"NMD": "Newry Mourne and Down",
"NSM": "North Somerset",
"NTH": "Northamptonshire",
"NTL": "Neath Port Talbot",
"NTT": "Nottinghamshire",
"NTY": "North Tyneside",
"NWM": "Newham",
"NWP": "Newport",
"NYK": "North Yorkshire",
"OLD": "Oldham",
"ORK": "Orkney Islands",
"OXF": "Oxfordshire",
"PEM": "Pembrokeshire",
"PKN": "Perth and Kinross",
"PLY": "Plymouth",
"POL": "Poole",
"POR": "Portsmouth",
"POW": "Powys",
"PTE": "Peterborough",
"RCC": "Redcar and Cleveland",
"RCH": "Rochdale",
"RCT": "Rhondda Cynon Taf",
"RDB": "Redbridge",
"RDG": "Reading",
"RFW": "Renfrewshire",
"RIC": "Richmond upon Thames",
"ROT": "Rotherham",
"RUT": "Rutland",
"SAW": "Sandwell",
"SAY": "South Ayrshire",
"SCB": "Scottish Borders The",
"SCT": "Scotland",
"SFK": "Suffolk",
"SFT": "Sefton",
"SGC": "South Gloucestershire",
"SHF": "Sheffield",
"SHN": "St Helens",
"SHR": "Shropshire",
"SKP": "Stockport",
"SLF": "Salford",
"SLG": "Slough",
"SLK": "South Lanarkshire",
"SND": "Sunderland",
"SOL": "Solihull",
"SOM": "Somerset",
"SOS": "Southend-on-Sea",
"SRY": "Surrey",
"STE": "Stoke-on-Trent",
"STG": "Stirling",
"STH": "Southampton",
"STN": "Sutton",
"STS": "Staffordshire",
"STT": "Stockton-on-Tees",
"STY": "South Tyneside",
"SWA": "Swansea",
"SWD": "Swindon",
"SWK": "Southwark",
"TAM": "Tameside",
"TFW": "Telford and Wrekin",
"THR": "Thurrock",
"TOB": "Torbay",
"TOF": "Torfaen",
"TRF": "Trafford",
"TWH": "Tower Hamlets",
"VGL": "Vale of Glamorgan",
"WAR": "Warwickshire",
"WBK": "West Berkshire",
"WDU": "West Dunbartonshire",
"WFT": "Waltham Forest",
"WGN": "Wigan",
"WIL": "Wiltshire",
"WKF": "Wakefield",
"WLL": "Walsall",
"WLN": "West Lothian",
"WLS": "Wales",
"WLV": "Wolverhampton",
"WND": "Wandsworth",
"WNM": "Windsor and Maidenhead",
"WOK": "Wokingham",
"WOR": "Worcestershire",
"WRL": "Wirral",
"WRT": "Warrington",
"WRX": "Wrexham",
"WSM": "Westminster",
"WSX": "West Sussex",
"YOR": "York",
"ZET": "Shetland Islands"
}
}

13
data/iso_3166-2/GD.json Normal file
View file

@ -0,0 +1,13 @@
{
"source": "http://www.geonames.org/GD/administrative-division-grenada.html",
"country": "Grenada",
"subdivisions": {
"01": "Saint Andrew",
"02": "Saint David",
"03": "Saint George",
"04": "Saint John",
"05": "Saint Mark",
"06": "Saint Patrick",
"10": "Southern Grenadine Islands"
}
}

18
data/iso_3166-2/GE.json Normal file
View file

@ -0,0 +1,18 @@
{
"source": "http://www.geonames.org/GE/administrative-division-georgia.html",
"country": "Georgia",
"subdivisions": {
"AB": "Abkhazia",
"AJ": "Ajaria",
"GU": "Guria",
"IM": "Imereti",
"KA": "Kakheti",
"KK": "Kvemo Kartli",
"MM": "Mtskheta-Mtianeti",
"RL": "Racha Lechkhumi and Kvemo Svaneti",
"SJ": "Samtskhe-Javakheti",
"SK": "Shida Kartli",
"SZ": "Samegrelo-Zemo Svaneti",
"TB": "Tbilisi"
}
}

5
data/iso_3166-2/GF.json Normal file
View file

@ -0,0 +1,5 @@
{
"source": "http://www.geonames.org/GF/administrative-division-french-guiana.html",
"country": "French Guiana",
"subdivisions": []
}

5
data/iso_3166-2/GG.json Normal file
View file

@ -0,0 +1,5 @@
{
"source": "http://www.geonames.org/GG/administrative-division-guernsey.html",
"country": "Guernsey",
"subdivisions": []
}

16
data/iso_3166-2/GH.json Normal file
View file

@ -0,0 +1,16 @@
{
"source": "http://www.geonames.org/GH/administrative-division-ghana.html",
"country": "Ghana",
"subdivisions": {
"AA": "Greater Accra Region",
"AH": "Ashanti Region",
"BA": "Brong-Ahafo Region",
"CP": "Central Region",
"EP": "Eastern Region",
"NP": "Northern Region",
"TV": "Volta Region",
"UE": "Upper East Region",
"UW": "Upper West Region",
"WP": "Western Region"
}
}

5
data/iso_3166-2/GI.json Normal file
View file

@ -0,0 +1,5 @@
{
"source": "http://www.geonames.org/GI/administrative-division-gibraltar.html",
"country": "Gibraltar",
"subdivisions": []
}

11
data/iso_3166-2/GL.json Normal file
View file

@ -0,0 +1,11 @@
{
"source": "http://www.geonames.org/GL/administrative-division-greenland.html",
"country": "Greenland",
"subdivisions": {
"AV": "Avannaata",
"KU": "Kujalleq",
"QE": "Qeqqata",
"QT": "Qeqertalik",
"SM": "Sermersooq"
}
}

12
data/iso_3166-2/GM.json Normal file
View file

@ -0,0 +1,12 @@
{
"source": "http://www.geonames.org/GM/administrative-division-gambia.html",
"country": "Gambia",
"subdivisions": {
"B": "Banjul",
"L": "Lower River",
"M": "Central River",
"N": "North Bank",
"U": "Upper River",
"W": "Western"
}
}

47
data/iso_3166-2/GN.json Normal file
View file

@ -0,0 +1,47 @@
{
"source": "http://www.geonames.org/GN/administrative-division-guinea.html",
"country": "Guinea",
"subdivisions": {
"B": "Boké",
"BE": "Beyla",
"BF": "Boffa",
"BK": "Boke",
"C": "Conakry",
"CO": "Coyah",
"D": "Kindia",
"DB": "Dabola",
"DI": "Dinguiraye",
"DL": "Dalaba",
"DU": "Dubreka",
"F": "Faranah",
"FA": "Faranah",
"FO": "Forecariah",
"FR": "Fria",
"GA": "Gaoual",
"GU": "Gueckedou",
"K": "Kankan",
"KA": "Kankan",
"KB": "Koubia",
"KD": "Kindia",
"KE": "Kerouane",
"KN": "Koundara",
"KO": "Kouroussa",
"KS": "Kissidougou",
"L": "Labé",
"LA": "Labe",
"LE": "Lelouma",
"LO": "Lola",
"M": "Mamou",
"MC": "Macenta",
"MD": "Mandiana",
"ML": "Mali",
"MM": "Mamou",
"N": "Nzérékoré",
"NZ": "Nzerekore",
"PI": "Pita",
"SI": "Siguiri",
"TE": "Telimele",
"TO": "Tougue",
"YO": "Yomou"
}
}

5
data/iso_3166-2/GP.json Normal file
View file

@ -0,0 +1,5 @@
{
"source": "http://www.geonames.org/GP/administrative-division-guadeloupe.html",
"country": "Guadeloupe",
"subdivisions": []
}

15
data/iso_3166-2/GQ.json Normal file
View file

@ -0,0 +1,15 @@
{
"source": "http://www.geonames.org/GQ/administrative-division-equatorial-guinea.html",
"country": "Equatorial Guinea",
"subdivisions": {
"AN": "Provincia Annobon",
"BN": "Provincia Bioko Norte",
"BS": "Provincia Bioko Sur",
"C": "Región Continental",
"CS": "Provincia Centro Sur",
"I": "Región Insular",
"KN": "Provincia Kie-Ntem",
"LI": "Provincia Litoral",
"WN": "Provincia Wele-Nzas"
}
}

71
data/iso_3166-2/GR.json Normal file
View file

@ -0,0 +1,71 @@
{
"source": "http://www.geonames.org/GR/administrative-division-greece.html",
"country": "Greece",
"subdivisions": {
"01": "Nomós Aitolías kai Akarnanías",
"03": "Nomós Voiotías",
"04": "Nomós Evvoías",
"05": "Nomós Evrytanías",
"06": "Nomós Fthiótidos",
"07": "Nomós Fokídos",
"11": "Nomós Argolídos",
"12": "Nomós Arkadías",
"13": "Nomós Achaḯas",
"14": "Nomós Ileías",
"15": "Nomós Korinthías",
"16": "Nomós Lakonías",
"17": "Nomós Messinías",
"21": "Nomós Zakýnthou",
"22": "Nomós Kerkýras",
"23": "Nomós Kefallinías",
"24": "Nomós Lefkádas",
"31": "Nomós Ártis",
"32": "Nomós Thesprotías",
"33": "Nomós Ioannínon",
"34": "Nomós Prevézis",
"41": "Nomós Kardhítsas",
"42": "Nomós Larísis",
"43": "Nomós Magnisías",
"44": "Nomós Trikálon",
"51": "Nomós Grevenón",
"52": "Nomós Drámas",
"53": "Nomós Imathías",
"54": "Nomós Thessaloníkis",
"55": "Nomós Kaválas",
"56": "Nomós Kastoriás",
"57": "Nomós Kilkís",
"58": "Nomós Kozánis",
"59": "Nomós Péllis",
"61": "Nomós Pierías",
"62": "Nomós Serrón",
"63": "Nomós Florínis",
"64": "Nomós Chalkidikís",
"69": "Agio Oros",
"71": "Nomós Évrou",
"72": "Nomós Xánthis",
"73": "Nomós Rodópis",
"81": "Nomós Dodekanísou",
"82": "Nomós Kykládon",
"83": "Nomós Lésvou",
"84": "Nomós Sámou",
"85": "Nomós Chíou",
"91": "Nomós Irakleíou",
"92": "Nomós Lasithíou",
"93": "Nomós Rethýmnis",
"94": "Nomós Chaniás",
"A": "Anatoliki Makedonia kai Thraki",
"A1": "Nomós Attikís",
"B": "Kentriki Makedonia",
"C": "Dytiki Makedonia",
"D": "Ipeiros",
"E": "Thessalia",
"F": "Ionia Nisia",
"G": "Dytiki Ellada",
"H": "Sterea Ellada",
"I": "Attiki",
"J": "Peloponnisos",
"K": "Voreio Aigaio",
"L": "Notio Aigaio",
"M": "Kriti"
}
}

5
data/iso_3166-2/GS.json Normal file
View file

@ -0,0 +1,5 @@
{
"source": "http://www.geonames.org/GS/administrative-division-south-georgia-and-the-south-sandwich-islands.html",
"country": "South Georgia and the South Sandwich Islands",
"subdivisions": []
}

28
data/iso_3166-2/GT.json Normal file
View file

@ -0,0 +1,28 @@
{
"source": "http://www.geonames.org/GT/administrative-division-guatemala.html",
"country": "Guatemala",
"subdivisions": {
"AV": "Alta Verapaz",
"BV": "Baja Verapaz",
"CM": "Chimaltenango",
"CQ": "Chiquimula",
"ES": "Escuintla",
"GU": "Guatemala",
"HU": "Huehuetenango",
"IZ": "Izabal",
"JA": "Jalapa",
"JU": "Jutiapa",
"PE": "El Peten",
"PR": "El Progreso",
"QC": "El Quiche",
"QZ": "Quetzaltenango",
"RE": "Retalhuleu",
"SA": "Sacatepequez",
"SM": "San Marcos",
"SO": "Solola",
"SR": "Santa Rosa",
"SU": "Suchitepequez",
"TO": "Totonicapan",
"ZA": "Zacapa"
}
}

5
data/iso_3166-2/GU.json Normal file
View file

@ -0,0 +1,5 @@
{
"source": "http://www.geonames.org/GU/administrative-division-guam.html",
"country": "Guam",
"subdivisions": []
}

18
data/iso_3166-2/GW.json Normal file
View file

@ -0,0 +1,18 @@
{
"source": "http://www.geonames.org/GW/administrative-division-guinea-bissau.html",
"country": "Guinea-Bissau",
"subdivisions": {
"BA": "Bafata Region",
"BL": "Bolama Region",
"BM": "Biombo Region",
"BS": "Bissau Region",
"CA": "Cacheu Region",
"GA": "Gabu Region",
"L": "Leste",
"N": "Norte",
"OI": "Oio Region",
"QU": "Quinara Region",
"S": "Sul",
"TO": "Tombali Region"
}
}

16
data/iso_3166-2/GY.json Normal file
View file

@ -0,0 +1,16 @@
{
"source": "http://www.geonames.org/GY/administrative-division-guyana.html",
"country": "Guyana",
"subdivisions": {
"BA": "Barima-Waini",
"CU": "Cuyuni-Mazaruni",
"DE": "Demerara-Mahaica",
"EB": "East Berbice-Corentyne",
"ES": "Essequibo Islands-West Demerara",
"MA": "Mahaica-Berbice",
"PM": "Pomeroon-Supenaam",
"PT": "Potaro-Siparuni",
"UD": "Upper Demerara-Berbice",
"UT": "Upper Takutu-Upper Essequibo"
}
}

24
data/iso_3166-2/HK.json Normal file
View file

@ -0,0 +1,24 @@
{
"source": "http://www.geonames.org/HK/administrative-division-hong-kong.html",
"country": "Hong Kong",
"subdivisions": {
"HCW": "Central and Western Hong Kong Island",
"HEA": "Eastern Hong Kong Island",
"HSO": "Southern Hong Kong Island",
"HWC": "Wan Chai Hong Kong Island",
"KKC": "Kowloon City Kowloon",
"KKT": "Kwun Tong Kowloon",
"KSS": "Sham Shui Po Kowloon",
"KWT": "Wong Tai Sin Kowloon",
"KYT": "Yau Tsim Mong Kowloon",
"NIS": "Islands New Territories",
"NKT": "Kwai Tsing New Territories",
"NNO": "North New Territories",
"NSK": "Sai Kung New Territories",
"NST": "Sha Tin New Territories",
"NTM": "Tuen Mun New Territories",
"NTP": "Tai Po New Territories",
"NTW": "Tsuen Wan New Territories",
"NYL": "Yuen Long New Territories"
}
}

10
data/iso_3166-2/HM.json Normal file
View file

@ -0,0 +1,10 @@
{
"source": "http://www.geonames.org/HM/administrative-division-heard-island-and-mcdonald-islands.html",
"country": "Heard Island and McDonald Islands",
"subdivisions": {
"F": "Flat Island",
"H": "Heard Island",
"M": "McDonald Island",
"S": "Shag Island"
}
}

Some files were not shown because too many files have changed in this diff Show more