Questions tagged [iso-3166]

A standard published by ISO that defines codes for the names of countries, dependent territories, special areas of geographical interest, and their principal subdivisions (e.g., provinces or states). The official name of the standard is "Codes for the representation of names of countries and their subdivisions".

It consists of three parts:

  • ISO 3166-1, Codes for the representation of names of countries and their subdivisions – Part 1: Country codes, defines codes for the names of countries, dependent territories, and special areas of geographical interest. It defines three sets of country codes:
    • ISO 3166-1 alpha-2 – two-letter country codes which are the most widely used of the three, and used most prominently for the Internet's country code top-level domains (with a few exceptions).
    • ISO 3166-1 alpha-3 – three-letter country codes which allow a better visual association between the codes and the country names than the alpha-2 codes.
    • ISO 3166-1 numeric – three-digit country codes which are identical to those developed and maintained by the United Nations Statistics Division, with the advantage of script (writing system) independence, and hence useful for people or systems using non-Latin scripts.
  • ISO 3166-2, Codes for the representation of names of countries and their subdivisions – Part 2: Country subdivision code, defines codes for the names of the principal subdivisions (e.g., provinces or states) of all countries coded in ISO 3166-1.
  • ISO 3166-3, Codes for the representation of names of countries and their subdivisions – Part 3: Code for formerly used names of countries, defines codes for country names which have been deleted from ISO 3166-1 since its first publication in 1974.
37 questions
0
votes
1 answer

nodejs - iso 3166 - Alternative countries names

I'm writing a program that extracts countries from https://restcountries.eu/ I'm using the data to save in my mongo DB and update it. ofc, the data doesn't change too often, but this is for a decade forward. const COUNTRIES_URL =…
No Idea For Name
  • 11,411
  • 10
  • 42
  • 70
0
votes
1 answer

Get ISO 3166-2 Code from Bing Maps Locations API

Is there a way to get the ISO 3166-2 Code for a specific PostalCode/CountryCode Combination with the Bing Maps Locations API? Per Example: 1210/AT => AT-9
Mathias
  • 317
  • 1
  • 12
0
votes
1 answer

Get ISO 3166-2 Code from HERE Geocoder API

Is there a way to get the ISO 3166-2 Code for a specific PostalCode/CountryCode Combination with the HERE Geocoder API? Per Example: 1210/AT => AT-9
Mathias
  • 317
  • 1
  • 12
0
votes
1 answer

Use PYCOUNTRY to convert ISO 3166-1 alpha-2 to Country Name

Python (and coding newbie) here. I'm attempting to generate an XML file based a list of files in a directory. The first two letters of the filenames correspond to a new letter country code and I'm trying to extract this as well. My intended format…
RMcLellan
  • 1
  • 1
0
votes
1 answer

.Net: get ISO3166 code for German country name

I got 2 methods: one that converts a given ISO3166 code to the corresponding country's name in German (e.g. "de-DE" to "Deutschland"). This works fine. Now I need a method that works the other way around. Currently it looks like this: public…
Cleo
  • 620
  • 2
  • 10
  • 32
0
votes
1 answer

Locale and ISO3CountryCodes

I have seen recently in java 1.7 that if I loop on Locales and get the ISO3Country code for the same then for Locale "CS" it gives me error "couldn't find 3 letter country code CS". Is it expected behavior? I also tested in java 1.6 but there I am…
NaiveCoder
  • 957
  • 3
  • 14
  • 34
0
votes
1 answer

country-language code (ISO 3166) in actionscript

Is there a way to get the country-language code in ISO 3166 (for example: US_en) in actionscript with zinc like I would do in objectiveC: NSString* language = [[NSLocale preferredLanguages] objectAtIndex:0]; NSString *locale = [[NSLocale…
AndyPipkin
  • 147
  • 7
1 2
3