stefangabos / world_countries

Constantly updated lists of world countries and their associated alpha-2, alpha-3 and numeric country codes as defined by the ISO 3166 standard, available in CSV, JSON , PHP, SQL and XML formats, in multiple languages and with national flags included; also available are the ISO 3166-2 codes of provinces/ states associated with the countries
http://stefangabos.github.io/world_countries/
Other
1.34k stars 374 forks source link

Greenland is missing #82

Closed EightArmCode closed 4 months ago

EightArmCode commented 4 months ago

Hello!

Many thanks for the repo. 🙏

I downloaded the English list yesterday and have realized it is missing an entry for Greenland. I do not know about other languages, but I did see that the list in the README is also missing Greenland.

Interesting, because I do see this in the source.

EightArmCode commented 4 months ago

Going through it now, I've actually found quite a few missing countries. Taiwan, Puerto Rico, New Caledonia, etc...

stefangabos commented 4 months ago

No countries are missing. As per the long text on the GitHub page, the entries in the countries file are, and I quote,

the 193 sovereign states (commonly referred to as countries) that are members of the United Nations (UN) plus the 2 observer states of Palestine and the Vatican City State.

The entries in the world file are, and I quote again

the 249 countries, territories, and areas of geographical interest that have an officially assigned ISO 3166-1 code

Then, it says, and I quote once again

Note that there are 206 sovereign states in the world, the 11 states that are missing from the countries list being the ones having their sovereignty disputed. See the list of sovereign states with information on their status and recognition of their sovereignty.

Taiwan falls in the above category as it is not recognized by China, New Caledonia is not technically a country, but is instead recognised as a French overseas territory, Puerto Rico is a territory of the United States, while Greenland is a North American autonomous territory of the Kingdom of Denmark.

Long story short, you want the world file not the countries one