Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

world_iso list modified #330

Merged
merged 7 commits into from
May 27, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 73 additions & 15 deletions scripts/config_osm_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,25 +161,27 @@

world_iso = {
"Africa": {
"DZ": "algeria",
"DZ": "algeria",
pz-max marked this conversation as resolved.
Show resolved Hide resolved
"AO": "angola",
"BJ": "benin",
"BW": "botswana",
# "IO": "british-indian-ocean-territory", # Island
"BF": "burkina-faso",
"BI": "burundi",
"CM": "cameroon",
# canary-islands # Island
// # canary-islands # Island
pz-max marked this conversation as resolved.
Show resolved Hide resolved
# "CV": "cape-verde", # Island
"CF": "central-african-republic",
"TD": "chad",
# "KM": "comores", # Island
"CG": "congo-brazzaville",
# "KM": "comoros", # Island
"CG": "congo-brazzaville",
"CD": "congo-democratic-republic",
"DJ": "djibouti",
"EG": "egypt",
"GQ": "equatorial-guinea",
"ER": "eritrea",
"ET": "ethiopia",
"TF": "french-southern-territories",
pz-max marked this conversation as resolved.
Show resolved Hide resolved
"GA": "gabon",
"GH": "ghana",
"GW": "guinea-bissau", # No Data
Expand All @@ -194,13 +196,15 @@
"ML": "mali",
"MR": "mauritania",
# "MU": "mauritius", # Island
"YT": "mayotte",
"MA": "morocco",
"MZ": "mozambique",
"NA": "namibia",
"NE": "niger",
"NG": "nigeria",
"RE": "reunion",
"RW": "rwanda",
# saint-helena-ascension-and-tristan-da-cunha # Islands
# saint-helena-ascension-and-tristan-da-cunha # Islands
# "ST": "sao-tome-and-principe", # Island
"SN": "senegal",
"GM": "gambia",
Expand Down Expand Up @@ -234,6 +238,7 @@
# "CX": "christmas island", # Island
# "CC": "cocos (keeling) islands", # Island
"CY": "cyprus",
"EG": "egypt",
"GE": "georgia",
"HK": "hong kong",
"IN": "india",
Expand Down Expand Up @@ -263,60 +268,72 @@
"PS": "palestine",
"PH": "philippines",
"QA": "qatar",
"RU": "russian-federation",
"SA": "saudi-arabia",
"SG": "singapore", # merged with MY
# "XS": "spratly-islands", #Island
"LK": "sri-lanka",
"SY": "syria",
"TW": "taiwan",
"TJ": "tajikistan",
"TH": "thailand",
"TL": "timor-leste",
"TR": "turkey",
"TM": "turkmenistan",
"AE": "united-arab-emirates",
# "XD": "united-nations-neutral-zone"
"UZ": "uzbekistan",
"VN": "vietnam",
"YE": "yemen",
},
"Oceania": {
# "AS": "american-oceania", # Island
# "AS": "american-samoa", # Island
"AU": "australia",
# "CK": "cook islands", # Island
# "FJ": "fiji", # Island
# "PF": "french-polynesia", # Island
# "GU": "guam", # Island
# "KI": "kiribati", # Island
# "MH": "marshall islands", # Island
# "MH": "marshall-islands", # Island
# "FM": "micronesia", # Island
# "NR": "nauru", # Island
"NC": "new-caledonia",
"NZ": "new-zealand",
# "NU": "niue", # Island
# "NF": "norfolk island", # Island
# "MP": "northern mariana islands",
# "NF": "norfolk-island", # Island
# "MP": "northern-mariana-islands",
# "PW": "palau", # Island
# "PN": "pitcairn-islands", # Islands
# "PW": "palau", # Island
"PG": "papua-new-guinea",
# "WS": "samoa", # Island
# "SB": "solomon islands",
# "SB": "solomon-islands",
# "TK": "tokelau", # Island
# "TO": "tonga", # Island
# "TV": "tuvalu", # Island
# "UM": "united-states-minor-outlying-islands", #Islands
# "VU": "vanuatu", # Island
# "WF": "wallis-et-futuna", # Island
# "WF": "wallis-and-futuna", # Island
},
"Europe": {
# "AX":"aland-islands", # Island
"AL": "albania",
"AD": "andorra",
"AM": "armenia",
"AT": "austria",
"AZ": "Azerbaijan",
"BY": "belarus",
"BE": "belgium",
"BA": "bosnia-herzegovina",
"BG": "bulgaria",
"HR": "croatia",
"CY": "cyprus",
"CZ": "czech-republic",
"DK": "denmark",
"EE": "estonia",
# "FO": "faroe islands", # Islands
"FI": "finland",
"FR": "france",
"GE": "georgia",
"DE": "germany",
# "GI": "gibraltar", # Island ?
"GR": "greece",
Expand All @@ -327,6 +344,8 @@
# "IM": "isle of man", # Island
"IT": "italy",
# "JE": "jersey", # Island
"KZ": "kazakhstan",
"XK": "kosovo",
"LV": "latvia",
"LI": "liechtenstein",
"LT": "lithuania",
Expand All @@ -353,12 +372,44 @@
"UA": "ukraine",
"GB": "great-britain",
"TR": "turkey",
"VA": "vatican",
},
"NorthAmerica": {
"AI": "anguilla",
# "AG": "antigua-and-barbuda", # Islands
# "AW": "aruba", # Islands
# "BS": "bahamas", # Islands
# "BB": "barbados", # Islands
# "BM": "bermuda", # Islands
# "BQ": "bonaire", # Islands
# "VG": "british-virgin-islands", # Islands
"CA": "canada",
# "KY": "cayman-islands", # Islands
# "CU": "cuba", # Islands
# "CW": "curacao", # Islands
# "DM": "dominica", # Islands
"DO": "dominican-republic",
"GL": "greenland",
# "GD": "grenada", # Islands
# "GP": "guadeloupe", # Islands
"HT": "haiti",
# "JM": "jamaica", # Islands
# "MQ": "martinique", # Islands
"MX": "mexico",
"US": "united states",
# "MS": "montserrat", # Islands
"US": "united-states-of-america",
# "PR": "puerto-rico", # Islands
# "BL": "saint-barthelemy", # Islands
# "KN": "saint-kitts-and-nevis", # Islands
# "LC": "saint-lucia", # Islands
# "MF": "saint-martin", # Islands
# "PM": "saint-pierre-and-miquelon", # Islands
# "VC": "saint-vincent-and-the-grenadines", # Islands
# "SX": "saint-marteen", # Islands
# "TT": "trinidad-and-tobago", # Islands
# "TC": "turks-and-caicos", # Islands
# "UM": "united-states-minor-outlying-islands", #Islands
# "VI": "united-states-virgin-islands", #Islands
"BZ": "belize",
"CR": "costa-rica",
"HN": "honduras",
Expand All @@ -374,14 +425,21 @@
"CL": "chile",
"CO": "colombia",
"EC": "ecuador",
"GF": "french-guyane",
# "GY": "guyane", # No Data
# "FK": "falkland-islands", #Islands
"GF": "french-guiana",
# "GY": "guyana", # No Data
"PE": "peru",
"PY": "paraguay",
"SR": "suriname",
"UY": "uruguay",
"VE": "venezuela",
},
#"Antarctica": {
# "AQ": "antarctica",
# "BV": "bouvet-island",
# "HM": "heard-island-and-mcdonald-island",
# "GS": "south-georgia-and-the-south-sandwich-islands",
# },
}

# Based on: https://waml.org/waml-information-bulletin/46-3/index-to-lc-g-schedule/1-world/
Expand Down