Created
May 26, 2023 05:45
-
-
Save whiplashoo/e546bb1e36873f12f9d47953d3bef04b to your computer and use it in GitHub Desktop.
Country and state abbreviations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
STATE_ABBREVIATIONS = { | |
AB: "Alberta", | |
BC: "British Columbia", | |
MB: "Manitoba", | |
NB: "New Brunswick", | |
NL: "Newfoundland and Labrador", | |
NT: "Northwest Territories", | |
NS: "Nova Scotia", | |
NU: "Nunavut", | |
ON: "Ontario", | |
PE: "Prince Edward Island", | |
QC: "Quebec", | |
SK: "Saskatchewan", | |
YT: "Yukon Territory", | |
AL: "Alabama", | |
AK: "Alaska", | |
AS: "American Samoa", | |
AZ: "Arizona", | |
AR: "Arkansas", | |
CA: "California", | |
CO: "Colorado", | |
CT: "Connecticut", | |
DE: "Delaware", | |
DC: "District Of Columbia", | |
FM: "Federated States Of Micronesia", | |
FL: "Florida", | |
GA: "Georgia", | |
GU: "Guam", | |
HI: "Hawaii", | |
ID: "Idaho", | |
IL: "Illinois", | |
IN: "Indiana", | |
IA: "Iowa", | |
KS: "Kansas", | |
KY: "Kentucky", | |
LA: "Louisiana", | |
ME: "Maine", | |
MH: "Marshall Islands", | |
MD: "Maryland", | |
MA: "Massachusetts", | |
MI: "Michigan", | |
MN: "Minnesota", | |
MS: "Mississippi", | |
MO: "Missouri", | |
MT: "Montana", | |
NE: "Nebraska", | |
NV: "Nevada", | |
NH: "New Hampshire", | |
NJ: "New Jersey", | |
NM: "New Mexico", | |
NY: "New York", | |
NC: "North Carolina", | |
ND: "North Dakota", | |
MP: "Northern Mariana Islands", | |
OH: "Ohio", | |
OK: "Oklahoma", | |
OR: "Oregon", | |
PW: "Palau", | |
PA: "Pennsylvania", | |
PR: "Puerto Rico", | |
RI: "Rhode Island", | |
SC: "South Carolina", | |
SD: "South Dakota", | |
TN: "Tennessee", | |
TX: "Texas", | |
UT: "Utah", | |
VT: "Vermont", | |
VI: "Virgin Islands", | |
VA: "Virginia", | |
WA: "Washington", | |
WV: "West Virginia", | |
WI: "Wisconsin", | |
WY: "Wyoming", | |
}; | |
COUNTRY_ABBREVIATIONS = { | |
AQ: "Antarctica", | |
AO: "Angola", | |
BF: "Burkina Faso", | |
BI: "Burundi", | |
BJ: "Benin", | |
BW: "Botswana", | |
CD: "Democratic Republic of the Congo", | |
CF: "Central African Republic", | |
CG: "Congo", | |
CI: "Côte d'Ivoire", | |
CM: "Cameroon", | |
CV: "Cape Verde", | |
DJ: "Djibouti", | |
DZ: "Algeria", | |
EG: "Egypt", | |
EH: "Western Sahara", | |
EL: "Greece", | |
ER: "Eritrea", | |
ET: "Ethiopia", | |
GA: "Gabon", | |
GH: "Ghana", | |
GM: "Gambia", | |
GN: "Guinea", | |
GQ: "Equatorial Guinea", | |
GS: "South Georgia and the South Sandwich Islands", | |
GW: "Guinea-Bissau", | |
KE: "Kenya", | |
KM: "Comoros", | |
LR: "Liberia", | |
LS: "Lesotho", | |
LY: "Libya", | |
MA: "Morocco", | |
MG: "Madagascar", | |
ML: "Mali", | |
MR: "Mauritania", | |
MS: "Montserrat", | |
MU: "Mauritius", | |
MW: "Malawi", | |
MZ: "Mozambique", | |
NA: "Namibia", | |
NE: "Niger", | |
NG: "Nigeria", | |
RW: "Rwanda", | |
SC: "Seychelles", | |
SD: "Sudan", | |
SH: "Saint Helena", | |
SL: "Sierra Leone", | |
SN: "Senegal", | |
SO: "Somalia", | |
SS: "South Sudan", | |
ST: "Sao Tome and Principe", | |
SZ: "Eswatini", | |
TD: "Chad", | |
TF: "French Southern Territories", | |
TG: "Togo", | |
TN: "Tunisia", | |
TO: "Tonga", | |
TZ: "United Republic of Tanzania", | |
UG: "Uganda", | |
ZA: "South Africa", | |
ZM: "Zambia", | |
ZW: "Zimbabwe", | |
AG: "Antigua and Barbuda", | |
AI: "Anguilla", | |
AR: "Argentina", | |
AW: "Aruba", | |
BB: "Barbados", | |
BL: "Saint Barthélemy", | |
BM: "Bermuda", | |
BO: "Bolivia", | |
BR: "Brazil", | |
BS: "Bahamas", | |
BZ: "Belize", | |
BQ: "Bonaire", | |
CA: "Canada", | |
CL: "Chile", | |
CO: "Colombia", | |
CR: "Costa Rica", | |
CU: "Cuba", | |
CW: "Curaçao", | |
DM: "Dominica", | |
DO: "Dominican Republic", | |
EC: "Ecuador", | |
FK: "Falkland Islands", | |
GD: "Grenada", | |
GF: "French Guiana", | |
GL: "Greenland", | |
GP: "Guadeloupe", | |
GT: "Guatemala", | |
GU: "Guam", | |
GY: "Guyana", | |
HN: "Honduras", | |
HT: "Haiti", | |
JM: "Jamaica", | |
KN: "St Kitts and Nevis", | |
KY: "Cayman Islands", | |
LC: "St Lucia", | |
MF: "St Martin", | |
MQ: "Martinique", | |
MX: "Mexico", | |
NI: "Nicaragua", | |
PA: "Panama", | |
PE: "Peru", | |
PM: "St Pierre and Miquelon", | |
PR: "Puerto Rico", | |
PY: "Paraguay", | |
SR: "Suriname", | |
SV: "El Salvador", | |
SX: "Sint Maarten", | |
TC: "Turks and Caicos Islands", | |
TT: "Trinidad and Tobago", | |
US: "United States", | |
UY: "Uruguay", | |
VC: "Saint Vincent and the Grenadines", | |
VE: "Venezuela", | |
VG: "British Virgin Islands", | |
VI: "U.S. Virgin Islands", | |
AE: "United Arab Emirates", | |
AF: "Afghanistan", | |
AM: "Armenia", | |
AZ: "Azerbaijan", | |
BD: "Bangladesh", | |
BH: "Bahrain", | |
BN: "Brunei Darussalam", | |
BT: "Bhutan", | |
CN: "China", | |
GE: "Georgia", | |
HK: "Hong Kong", | |
ID: "Indonesia", | |
IL: "Israel", | |
IN: "India", | |
IO: "British Indian Ocean Territory", | |
IQ: "Iraq", | |
IR: "Iran", | |
JO: "Jordan", | |
JP: "Japan", | |
KG: "Kyrgyzstan", | |
KH: "Cambodia", | |
KP: "North Korea", | |
KR: "South Korea", | |
KW: "Kuwait", | |
KZ: "Kazakhstan", | |
LA: "Laos", | |
LB: "Lebanon", | |
LK: "Sri Lanka", | |
MM: "Myanmar", | |
MN: "Mongolia", | |
MO: "Macao", | |
MV: "Maldives", | |
MY: "Malaysia", | |
NP: "Nepal", | |
OM: "Oman", | |
PH: "Philippines", | |
PK: "Pakistan", | |
PS: "Palestine", | |
QA: "Qatar", | |
SA: "Saudi Arabia", | |
SG: "Singapore", | |
SY: "Syrian Arab Republic", | |
TH: "Thailand", | |
TJ: "Tajikistan", | |
TL: "Timor-Leste", | |
TM: "Turkmenistan", | |
TR: "Türkiye", | |
TW: "Taiwan", | |
UZ: "Uzbekistan", | |
VN: "Vietnam", | |
YE: "Yemen", | |
AD: "Andorra", | |
AL: "Albania", | |
AT: "Austria", | |
BA: "Bosnia and Herzegovina", | |
BE: "Belgium", | |
BG: "Bulgaria", | |
BY: "Belarus", | |
CH: "Switzerland", | |
CY: "Cyprus", | |
CZ: "Czechia", | |
DE: "Germany", | |
DK: "Denmark", | |
EE: "Estonia", | |
ES: "Spain", | |
FI: "Finland", | |
FO: "Faroe Islands", | |
FR: "France", | |
GR: "Greece", | |
HR: "Croatia", | |
HU: "Hungary", | |
IE: "Ireland", | |
IS: "Iceland", | |
IT: "Italy", | |
LI: "Liechtenstein", | |
LT: "Lithuania", | |
LU: "Luxembourg", | |
LV: "Latvia", | |
MC: "Monaco", | |
MD: "Moldova", | |
ME: "Montenegro", | |
MK: "North Macedonia", | |
MT: "Malta", | |
NL: "Netherlands", | |
NO: "Norway", | |
PL: "Poland", | |
PT: "Portugal", | |
RO: "Romania", | |
RS: "Serbia", | |
RU: "Russia", | |
SE: "Sweden", | |
SI: "Slovenia", | |
SM: "San Marino", | |
SK: "Slovakia", | |
UA: "Ukraine", | |
UK: "United Kingdom", | |
VA: "Vatican", | |
XK: "Kosovo", | |
AU: "Australia", | |
AS: "American Samoa", | |
CK: "Cook Islands", | |
FJ: "Fiji", | |
FM: "Micronesia, Federated States of", | |
HM: "Heard Island and McDonald Islands", | |
KI: "Kiribati", | |
MH: "Marshall Islands", | |
MP: "Northern Mariana Islands", | |
NR: "Nauru", | |
NC: "New Caledonia", | |
NF: "Norfolk Island", | |
NZ: "New Zealand", | |
NU: "Niue", | |
PF: "French Polynesia", | |
PG: "Papua New Guinea", | |
PN: "Pitcairn Islands", | |
PW: "Palau", | |
SB: "Solomon Islands", | |
TK: "Tokelau", | |
TV: "Tuvalu", | |
UM: "United States Minor Outlying Islands", | |
VU: "Vanuatu", | |
WF: "Wallis and Futuna", | |
WS: "Samoa", | |
OT: "Other, autonomous, etc.", | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment