Commit d4e76a23 authored by Tobias Quathamer's avatar Tobias Quathamer

Add alpha_2 codes to ISO 3166-3.

Closes: alioth#315741
Thanks: Adrian Mönnich
parent 0666ca91
{ {
"3166-3": [ "3166-3": [
{ {
"alpha_2": "AI",
"alpha_3": "AFI", "alpha_3": "AFI",
"alpha_4": "AIDJ", "alpha_4": "AIDJ",
"name": "French Afars and Issas", "name": "French Afars and Issas",
...@@ -8,6 +9,7 @@ ...@@ -8,6 +9,7 @@
"withdrawal_date": "1977" "withdrawal_date": "1977"
}, },
{ {
"alpha_2": "AN",
"alpha_3": "ANT", "alpha_3": "ANT",
"alpha_4": "ANHH", "alpha_4": "ANHH",
"name": "Netherlands Antilles", "name": "Netherlands Antilles",
...@@ -15,12 +17,14 @@ ...@@ -15,12 +17,14 @@
"withdrawal_date": "1993-07-12" "withdrawal_date": "1993-07-12"
}, },
{ {
"alpha_2": "BQ",
"alpha_3": "ATB", "alpha_3": "ATB",
"alpha_4": "BQAQ", "alpha_4": "BQAQ",
"name": "British Antarctic Territory", "name": "British Antarctic Territory",
"withdrawal_date": "1979" "withdrawal_date": "1979"
}, },
{ {
"alpha_2": "BU",
"alpha_3": "BUR", "alpha_3": "BUR",
"alpha_4": "BUMM", "alpha_4": "BUMM",
"name": "Burma, Socialist Republic of the Union of", "name": "Burma, Socialist Republic of the Union of",
...@@ -28,6 +32,7 @@ ...@@ -28,6 +32,7 @@
"withdrawal_date": "1989-12-05" "withdrawal_date": "1989-12-05"
}, },
{ {
"alpha_2": "BY",
"alpha_3": "BYS", "alpha_3": "BYS",
"alpha_4": "BYAA", "alpha_4": "BYAA",
"name": "Byelorussian SSR Soviet Socialist Republic", "name": "Byelorussian SSR Soviet Socialist Republic",
...@@ -35,6 +40,7 @@ ...@@ -35,6 +40,7 @@
"withdrawal_date": "1992-06-15" "withdrawal_date": "1992-06-15"
}, },
{ {
"alpha_2": "CS",
"alpha_3": "CSK", "alpha_3": "CSK",
"alpha_4": "CSHH", "alpha_4": "CSHH",
"name": "Czechoslovakia, Czechoslovak Socialist Republic", "name": "Czechoslovakia, Czechoslovak Socialist Republic",
...@@ -42,6 +48,7 @@ ...@@ -42,6 +48,7 @@
"withdrawal_date": "1993-06-15" "withdrawal_date": "1993-06-15"
}, },
{ {
"alpha_2": "CS",
"alpha_3": "SCG", "alpha_3": "SCG",
"alpha_4": "CSXX", "alpha_4": "CSXX",
"name": "Serbia and Montenegro", "name": "Serbia and Montenegro",
...@@ -49,6 +56,7 @@ ...@@ -49,6 +56,7 @@
"withdrawal_date": "2006-06-05" "withdrawal_date": "2006-06-05"
}, },
{ {
"alpha_2": "CT",
"alpha_3": "CTE", "alpha_3": "CTE",
"alpha_4": "CTKI", "alpha_4": "CTKI",
"name": "Canton and Enderbury Islands", "name": "Canton and Enderbury Islands",
...@@ -56,6 +64,7 @@ ...@@ -56,6 +64,7 @@
"withdrawal_date": "1984" "withdrawal_date": "1984"
}, },
{ {
"alpha_2": "DD",
"alpha_3": "DDR", "alpha_3": "DDR",
"alpha_4": "DDDE", "alpha_4": "DDDE",
"name": "German Democratic Republic", "name": "German Democratic Republic",
...@@ -63,6 +72,7 @@ ...@@ -63,6 +72,7 @@
"withdrawal_date": "1990-10-30" "withdrawal_date": "1990-10-30"
}, },
{ {
"alpha_2": "DY",
"alpha_3": "DHY", "alpha_3": "DHY",
"alpha_4": "DYBJ", "alpha_4": "DYBJ",
"name": "Dahomey", "name": "Dahomey",
...@@ -70,6 +80,7 @@ ...@@ -70,6 +80,7 @@
"withdrawal_date": "1977" "withdrawal_date": "1977"
}, },
{ {
"alpha_2": "FQ",
"alpha_3": "ATF", "alpha_3": "ATF",
"alpha_4": "FQHH", "alpha_4": "FQHH",
"comment": "now split between AQ and TF", "comment": "now split between AQ and TF",
...@@ -77,6 +88,7 @@ ...@@ -77,6 +88,7 @@
"withdrawal_date": "1979" "withdrawal_date": "1979"
}, },
{ {
"alpha_2": "FX",
"alpha_3": "FXX", "alpha_3": "FXX",
"alpha_4": "FXFR", "alpha_4": "FXFR",
"name": "France, Metropolitan", "name": "France, Metropolitan",
...@@ -84,6 +96,7 @@ ...@@ -84,6 +96,7 @@
"withdrawal_date": "1997-07-14" "withdrawal_date": "1997-07-14"
}, },
{ {
"alpha_2": "GE",
"alpha_3": "GEL", "alpha_3": "GEL",
"alpha_4": "GEHH", "alpha_4": "GEHH",
"comment": "now split into Kiribati and Tuvalu", "comment": "now split into Kiribati and Tuvalu",
...@@ -92,6 +105,7 @@ ...@@ -92,6 +105,7 @@
"withdrawal_date": "1979" "withdrawal_date": "1979"
}, },
{ {
"alpha_2": "HV",
"alpha_3": "HVO", "alpha_3": "HVO",
"alpha_4": "HVBF", "alpha_4": "HVBF",
"name": "Upper Volta, Republic of", "name": "Upper Volta, Republic of",
...@@ -99,6 +113,7 @@ ...@@ -99,6 +113,7 @@
"withdrawal_date": "1984" "withdrawal_date": "1984"
}, },
{ {
"alpha_2": "JT",
"alpha_3": "JTN", "alpha_3": "JTN",
"alpha_4": "JTUM", "alpha_4": "JTUM",
"name": "Johnston Island", "name": "Johnston Island",
...@@ -106,6 +121,7 @@ ...@@ -106,6 +121,7 @@
"withdrawal_date": "1986" "withdrawal_date": "1986"
}, },
{ {
"alpha_2": "MI",
"alpha_3": "MID", "alpha_3": "MID",
"alpha_4": "MIUM", "alpha_4": "MIUM",
"name": "Midway Islands", "name": "Midway Islands",
...@@ -113,6 +129,7 @@ ...@@ -113,6 +129,7 @@
"withdrawal_date": "1986" "withdrawal_date": "1986"
}, },
{ {
"alpha_2": "NH",
"alpha_3": "NHB", "alpha_3": "NHB",
"alpha_4": "NHVU", "alpha_4": "NHVU",
"name": "New Hebrides", "name": "New Hebrides",
...@@ -120,6 +137,7 @@ ...@@ -120,6 +137,7 @@
"withdrawal_date": "1980" "withdrawal_date": "1980"
}, },
{ {
"alpha_2": "NQ",
"alpha_3": "ATN", "alpha_3": "ATN",
"alpha_4": "NQAQ", "alpha_4": "NQAQ",
"name": "Dronning Maud Land", "name": "Dronning Maud Land",
...@@ -127,6 +145,7 @@ ...@@ -127,6 +145,7 @@
"withdrawal_date": "1983" "withdrawal_date": "1983"
}, },
{ {
"alpha_2": "NT",
"alpha_3": "NTZ", "alpha_3": "NTZ",
"alpha_4": "NTHH", "alpha_4": "NTHH",
"comment": "formerly between Saudi Arabia and Iraq", "comment": "formerly between Saudi Arabia and Iraq",
...@@ -135,6 +154,7 @@ ...@@ -135,6 +154,7 @@
"withdrawal_date": "1993-07-12" "withdrawal_date": "1993-07-12"
}, },
{ {
"alpha_2": "PC",
"alpha_3": "PCI", "alpha_3": "PCI",
"alpha_4": "PCHH", "alpha_4": "PCHH",
"comment": "divided into FM, MH, MP, and PW", "comment": "divided into FM, MH, MP, and PW",
...@@ -143,6 +163,7 @@ ...@@ -143,6 +163,7 @@
"withdrawal_date": "1986" "withdrawal_date": "1986"
}, },
{ {
"alpha_2": "PU",
"alpha_3": "PUS", "alpha_3": "PUS",
"alpha_4": "PUUM", "alpha_4": "PUUM",
"name": "US Miscellaneous Pacific Islands", "name": "US Miscellaneous Pacific Islands",
...@@ -150,12 +171,14 @@ ...@@ -150,12 +171,14 @@
"withdrawal_date": "1986" "withdrawal_date": "1986"
}, },
{ {
"alpha_2": "PZ",
"alpha_3": "PCZ", "alpha_3": "PCZ",
"alpha_4": "PZPA", "alpha_4": "PZPA",
"name": "Panama Canal Zone", "name": "Panama Canal Zone",
"withdrawal_date": "1980" "withdrawal_date": "1980"
}, },
{ {
"alpha_2": "RH",
"alpha_3": "RHO", "alpha_3": "RHO",
"alpha_4": "RHZW", "alpha_4": "RHZW",
"name": "Southern Rhodesia", "name": "Southern Rhodesia",
...@@ -163,12 +186,14 @@ ...@@ -163,12 +186,14 @@
"withdrawal_date": "1980" "withdrawal_date": "1980"
}, },
{ {
"alpha_2": "SK",
"alpha_3": "SKM", "alpha_3": "SKM",
"alpha_4": "SKIN", "alpha_4": "SKIN",
"name": "Sikkim", "name": "Sikkim",
"withdrawal_date": "1975" "withdrawal_date": "1975"
}, },
{ {
"alpha_2": "SU",
"alpha_3": "SUN", "alpha_3": "SUN",
"alpha_4": "SUHH", "alpha_4": "SUHH",
"name": "USSR, Union of Soviet Socialist Republics", "name": "USSR, Union of Soviet Socialist Republics",
...@@ -176,6 +201,7 @@ ...@@ -176,6 +201,7 @@
"withdrawal_date": "1992-08-30" "withdrawal_date": "1992-08-30"
}, },
{ {
"alpha_2": "TP",
"alpha_3": "TMP", "alpha_3": "TMP",
"alpha_4": "TPTL", "alpha_4": "TPTL",
"comment": "was Portuguese Timor", "comment": "was Portuguese Timor",
...@@ -184,12 +210,14 @@ ...@@ -184,12 +210,14 @@
"withdrawal_date": "2002-05-20" "withdrawal_date": "2002-05-20"
}, },
{ {
"alpha_2": "VD",
"alpha_3": "VDR", "alpha_3": "VDR",
"alpha_4": "VDVN", "alpha_4": "VDVN",
"name": "Viet-Nam, Democratic Republic of", "name": "Viet-Nam, Democratic Republic of",
"withdrawal_date": "1977" "withdrawal_date": "1977"
}, },
{ {
"alpha_2": "WK",
"alpha_3": "WAK", "alpha_3": "WAK",
"alpha_4": "WKUM", "alpha_4": "WKUM",
"name": "Wake Island", "name": "Wake Island",
...@@ -197,6 +225,7 @@ ...@@ -197,6 +225,7 @@
"withdrawal_date": "1986" "withdrawal_date": "1986"
}, },
{ {
"alpha_2": "YD",
"alpha_3": "YMD", "alpha_3": "YMD",
"alpha_4": "YDYE", "alpha_4": "YDYE",
"name": "Yemen, Democratic, People's Democratic Republic of", "name": "Yemen, Democratic, People's Democratic Republic of",
...@@ -204,6 +233,7 @@ ...@@ -204,6 +233,7 @@
"withdrawal_date": "1990-08-14" "withdrawal_date": "1990-08-14"
}, },
{ {
"alpha_2": "YU",
"alpha_3": "YUG", "alpha_3": "YUG",
"alpha_4": "YUCS", "alpha_4": "YUCS",
"name": "Yugoslavia, Socialist Federal Republic of", "name": "Yugoslavia, Socialist Federal Republic of",
...@@ -211,6 +241,7 @@ ...@@ -211,6 +241,7 @@
"withdrawal_date": "1993-07-28" "withdrawal_date": "1993-07-28"
}, },
{ {
"alpha_2": "ZR",
"alpha_3": "ZAR", "alpha_3": "ZAR",
"alpha_4": "ZRCD", "alpha_4": "ZRCD",
"name": "Zaire, Republic of", "name": "Zaire, Republic of",
......
...@@ -11,6 +11,11 @@ ...@@ -11,6 +11,11 @@
"items": { "items": {
"type": "object", "type": "object",
"properties": { "properties": {
"alpha_2": {
"description": "Two letter alphabetic code of the item",
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"alpha_3": { "alpha_3": {
"description": "Three letter alphabetic code of the item", "description": "Three letter alphabetic code of the item",
"type": "string", "type": "string",
...@@ -42,7 +47,7 @@ ...@@ -42,7 +47,7 @@
"pattern": "^[0-9]{4}(|-[0-9]{2}){2}$" "pattern": "^[0-9]{4}(|-[0-9]{2}){2}$"
} }
}, },
"required": ["alpha_3", "alpha_4", "name"], "required": ["alpha_2", "alpha_3", "alpha_4", "name"],
"additionalProperties": false "additionalProperties": false
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment