dr5hn / countries-states-cities-database

🌍 Discover our global repository of countries, states, and cities! 🏙️ Get comprehensive data in JSON, SQL, PSQL, XML, YAML, and CSV formats. Access ISO2, ISO3 codes, country code, capital, native language, timezones (for countries), and more. #countries #states #cities
https://dr5hn.github.io/countries-states-cities-database/
Open Data Commons Open Database License v1.0
7.38k stars 2.56k forks source link

No world regions linked to countries #98

Closed lesiagnapovska359 closed 3 years ago

lesiagnapovska359 commented 4 years ago

All the countries should be linked to region like Europe, Asia and so on. Here are the API which provide regions for country https://restcountries.eu/rest/v2/all?fields=name;region

dr5hn commented 4 years ago

@lesiagnapovska359 Woohoo.. 🎉 Nice One.. Thanks for sharing this..

This will gonna make a good enhancement to database. Really appreciate it. Will add it soon..

lesiagnapovska359 commented 4 years ago

Wellcome! Many thanks to the database. It cames really helpfull for me.

dereuromark commented 4 years ago

Oh, I guess this is what I meant with https://github.com/dr5hn/countries-states-cities-database/issues/125 and continents I did that already for 200 of 250 countries. I guess your list is complete though?

dereuromark commented 4 years ago

{"name":"Turkey","region":"Asia"} Shouldnt that be in the Europe region? Especially since even Russia is still mainly Europe :) At least that's where I put them in my DB after some research on it.

dr5hn commented 4 years ago

@dereuromark According to Wikipedia, it should belong to Asia.

Check this 👇🏼 Turkey, officially the Republic of Turkey is a transcontinental country located mainly on the Anatolian peninsula in Western Asia, with a smaller portion on the Balkan peninsula in Southeastern Europe.

It has a major portion in Asia and a smaller portion in Europe.

dr5hn commented 3 years ago

@lesiagnapovska359 Done. Added. #126