Skip to content

Instantly share code, notes, and snippets.

@msikma
Last active July 10, 2021 10:24
Show Gist options
  • Save msikma/ce73dd5236980c513578 to your computer and use it in GitHub Desktop.
Save msikma/ce73dd5236980c513578 to your computer and use it in GitHub Desktop.
List of all countries – separated, inside European Union and outside EU
/**
* List of countries, with country code (ISO 3166-1), separated by whether
* they're inside or outside the EU. This list has been updated as of
* 2014-12-04, per the list of deleted countries
* at <http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2>.
*/
var listAllCountries = {
'insideEU': {
'AT': 'Austria',
'BE': 'Belgium',
'BG': 'Bulgaria',
'HR': 'Croatia',
'CY': 'Cyprus',
'CZ': 'Czech Republic',
'DK': 'Denmark',
'EE': 'Estonia',
'FI': 'Finland',
'FR': 'France',
'DE': 'Germany',
'GR': 'Greece',
'HU': 'Hungary',
'IE': 'Ireland',
'IT': 'Italy',
'LV': 'Latvia',
'LT': 'Lithuania',
'LU': 'Luxembourg',
'MT': 'Malta',
'NL': 'Netherlands',
'PL': 'Poland',
'PT': 'Portugal',
'RO': 'Romania',
'SK': 'Slovakia',
'SI': 'Slovenia',
'ES': 'Spain',
'SE': 'Sweden',
'GB': 'United Kingdom'
},
'outsideEU': {
'AF': 'Afghanistan',
'AL': 'Albania',
'DZ': 'Algeria',
'AS': 'American Samoa',
'AD': 'Andorra',
'AO': 'Angola',
'AI': 'Anguilla',
'AQ': 'Antarctica',
'AG': 'Antigua and Barbuda',
'AR': 'Argentina',
'AM': 'Armenia',
'AW': 'Aruba',
'AU': 'Australia',
'AZ': 'Azerbaijan',
'BS': 'Bahamas',
'BH': 'Bahrain',
'BD': 'Bangladesh',
'BB': 'Barbados',
'BY': 'Belarus',
'BZ': 'Belize',
'BJ': 'Benin',
'BM': 'Bermuda',
'BT': 'Bhutan',
'BO': 'Bolivia',
'BA': 'Bosnia and Herzegovina',
'BW': 'Botswana',
'BV': 'Bouvet Island',
'BR': 'Brazil',
'BQ': 'Bonaire, Sint Eustatius and Saba (Caribbean Netherlands)',
'IO': 'British Indian Ocean Territory',
'VG': 'British Virgin Islands',
'BN': 'Brunei',
'BF': 'Burkina Faso',
'BI': 'Burundi',
'KH': 'Cambodia',
'CM': 'Cameroon',
'CA': 'Canada',
'CV': 'Cape Verde',
'KY': 'Cayman Islands',
'CF': 'Central African Republic',
'TD': 'Chad',
'CL': 'Chile',
'CN': 'China',
'CX': 'Christmas Island',
'CC': 'Cocos [Keeling] Islands',
'CO': 'Colombia',
'KM': 'Comoros',
'CG': 'Congo - Brazzaville',
'CD': 'Congo - Kinshasa',
'CK': 'Cook Islands',
'CR': 'Costa Rica',
'CU': 'Cuba',
'CI': 'Côte d’Ivoire',
'DJ': 'Djibouti',
'DM': 'Dominica',
'DO': 'Dominican Republic',
'EC': 'Ecuador',
'EG': 'Egypt',
'SV': 'El Salvador',
'GQ': 'Equatorial Guinea',
'ER': 'Eritrea',
'ET': 'Ethiopia',
'FK': 'Falkland Islands',
'FO': 'Faroe Islands',
'FJ': 'Fiji',
'GF': 'French Guiana',
'PF': 'French Polynesia',
'TF': 'French Southern Territories',
'GA': 'Gabon',
'GM': 'Gambia',
'GE': 'Georgia',
'GH': 'Ghana',
'GI': 'Gibraltar',
'GL': 'Greenland',
'GD': 'Grenada',
'GP': 'Guadeloupe',
'GU': 'Guam',
'GT': 'Guatemala',
'GG': 'Guernsey',
'GN': 'Guinea',
'GW': 'Guinea-Bissau',
'GY': 'Guyana',
'HT': 'Haiti',
'HM': 'Heard Island and McDonald Islands',
'HN': 'Honduras',
'HK': 'Hong Kong',
'IS': 'Iceland',
'IN': 'India',
'ID': 'Indonesia',
'IR': 'Iran',
'IQ': 'Iraq',
'IM': 'Isle of Man',
'IL': 'Israel',
'JM': 'Jamaica',
'JP': 'Japan',
'JE': 'Jersey',
'JO': 'Jordan',
'KZ': 'Kazakhstan',
'KE': 'Kenya',
'KI': 'Kiribati',
'KW': 'Kuwait',
'KG': 'Kyrgyzstan',
'LA': 'Laos',
'LB': 'Lebanon',
'LS': 'Lesotho',
'LR': 'Liberia',
'LY': 'Libya',
'LI': 'Liechtenstein',
'MO': 'Macau',
'MK': 'Macedonia',
'MG': 'Madagascar',
'MW': 'Malawi',
'MY': 'Malaysia',
'MV': 'Maldives',
'ML': 'Mali',
'MH': 'Marshall Islands',
'MQ': 'Martinique',
'MR': 'Mauritania',
'MU': 'Mauritius',
'YT': 'Mayotte',
'FX': 'Metropolitan France',
'MX': 'Mexico',
'FM': 'Micronesia',
'MD': 'Moldova',
'MC': 'Monaco',
'MN': 'Mongolia',
'ME': 'Montenegro',
'MS': 'Montserrat',
'MA': 'Morocco',
'MZ': 'Mozambique',
'MM': 'Myanmar (Burma)',
'NA': 'Namibia',
'NR': 'Nauru',
'NP': 'Nepal',
'AN': 'Netherlands Antilles',
'NT': 'Neutral Zone',
'NC': 'New Caledonia',
'NZ': 'New Zealand',
'NI': 'Nicaragua',
'NE': 'Niger',
'NG': 'Nigeria',
'NU': 'Niue',
'NF': 'Norfolk Island',
'KP': 'North Korea',
'MP': 'Northern Mariana Islands',
'NO': 'Norway',
'OM': 'Oman',
'PK': 'Pakistan',
'PW': 'Palau',
'PS': 'Palestinian Territories',
'PA': 'Panama',
'PG': 'Papua New Guinea',
'PY': 'Paraguay',
'PE': 'Peru',
'PH': 'Philippines',
'PN': 'Pitcairn Islands',
'PR': 'Puerto Rico',
'QA': 'Qatar',
'RU': 'Russia',
'RW': 'Rwanda',
'RE': 'Réunion',
'BL': 'Saint Barthélemy',
'SH': 'Saint Helena',
'KN': 'Saint Kitts and Nevis',
'LC': 'Saint Lucia',
'MF': 'Saint Martin',
'PM': 'Saint Pierre and Miquelon',
'VC': 'Saint Vincent and the Grenadines',
'WS': 'Samoa',
'SM': 'San Marino',
'SA': 'Saudi Arabia',
'SN': 'Senegal',
'RS': 'Serbia',
'CS': 'Serbia and Montenegro',
'SC': 'Seychelles',
'SL': 'Sierra Leone',
'SG': 'Singapore',
'SB': 'Solomon Islands',
'SO': 'Somalia',
'ZA': 'South Africa',
'GS': 'South Georgia and the South Sandwich Islands',
'KR': 'South Korea',
'LK': 'Sri Lanka',
'SD': 'Sudan',
'SR': 'Suriname',
'SJ': 'Svalbard and Jan Mayen',
'SZ': 'Swaziland',
'CH': 'Switzerland',
'SY': 'Syria',
'ST': 'São Tomé and Príncipe',
'TW': 'Taiwan',
'TJ': 'Tajikistan',
'TZ': 'Tanzania',
'TH': 'Thailand',
'TL': 'Timor-Leste',
'TG': 'Togo',
'TK': 'Tokelau',
'TO': 'Tonga',
'TT': 'Trinidad and Tobago',
'TN': 'Tunisia',
'TR': 'Turkey',
'TM': 'Turkmenistan',
'TC': 'Turks and Caicos Islands',
'TV': 'Tuvalu',
'UM': 'U.S. Minor Outlying Islands',
'VI': 'U.S. Virgin Islands',
'UG': 'Uganda',
'UA': 'Ukraine',
'SU': 'Union of Soviet Socialist Republics',
'AE': 'United Arab Emirates',
'US': 'United States',
'ZZ': 'Unknown or Invalid Region',
'UY': 'Uruguay',
'UZ': 'Uzbekistan',
'VU': 'Vanuatu',
'VA': 'Vatican City',
'VE': 'Venezuela',
'VN': 'Vietnam',
'WF': 'Wallis and Futuna',
'EH': 'Western Sahara',
'YE': 'Yemen',
'ZM': 'Zambia',
'ZW': 'Zimbabwe',
'AX': 'Åland Islands'
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment