Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I download a list of world cities and towns by ISO 3166-2 state code? [closed]

World countries and their standard codes are listed in ISO 3166-1. States (whatever are they called in different countries ("lands" in Germany, "federation subjects" in Russia etc.)) of the countries and their codes are defined in ISO 3166-2. But I couldn't find anything like this for cities.

What I need is a table listing of world cities where it would be also shown in what particular state are they situated and the state would be designated by an ISO 3166-2 code.

I have managed to find such a table listing USA cities (here) but I also need other countries data.

like image 530
Ivan Avatar asked Jul 18 '14 15:07

Ivan


People also ask

How many ISO codes are there?

Each complete ISO 3166-2 code can then be used to uniquely identify a country subdivision in a global context. As of 3 March 2022 there are 5,048 codes defined in ISO 3166-2.

What is state ISO code?

ISO 3166-2:US is the entry for the United States in ISO 3166-2, part of the ISO 3166 standard published by the International Organization for Standardization (ISO), which defines codes for the names of the principal subdivisions (e.g., provinces or states) of all countries coded in ISO 3166-1.

For what does the ISO 3166 provide a standard?

The purpose of ISO 3166 is to define internationally recognized codes of letters and/or numbers that we can use when we refer to countries and their subdivisions.


2 Answers

I was searching for information on the same issue and I've just discovered the UN LOCODE standard:

Currently, UN/LOCODE includes over 97,114 locations in 249 countries and installations in international waters. It is used by most major shipping companies, by freight forwarders and in the manufacturing industry around the world. It is also applied by national governments and in trade related activities, such as statistics where it is used by the European Union, by the UPU for certain postal services, etc

You can download for free the full LOCODE list in MS Access .mdb, .csv and .txt formats.

Hope this will help you. :)

Regards, -- Wayfarer

like image 87
Wayfarer Avatar answered Oct 19 '22 15:10

Wayfarer


A search on GitHub leads some dataset https://github.com/search?q=iso%203166%202

Here you find it in CSV for instance https://github.com/fran-diaz/ISO-3166

like image 27
sabas Avatar answered Oct 19 '22 15:10

sabas