Giter VIP home page Giter VIP logo

dr5hn / countries-states-cities-database Goto Github PK

View Code? Open in Web Editor NEW
6.5K 120.0 2.4K 1.38 GB

🌍 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

Home Page: https://dr5hn.github.io/countries-states-cities-database/

License: Open Data Commons Open Database License v1.0

PHP 97.56% Python 2.44%
cities countries states city state country json sql regions region

countries-states-cities-database's Introduction

Hello, nice to see you.

I'm Darshan Gada, Fullstack Software Developer (and sometimes still an OpenSource Contributor) from Mumbai, Maharashtra, India.

Email | LinkedIn | Twitter | Dev.to

📃 Status

✅ Checkout

🙋‍♂️ Support My Work

Github Sponsorship

ko-fi

An image of @dr5hn's Holopin badges, which is a link to view their full Holopin profile

countries-states-cities-database's People

Contributors

abdo0 avatar adevade avatar agostinofiscale avatar alexandru-bagu avatar aykutbuyukkaya avatar bor0 avatar cesariverit avatar dr5hn avatar freelenzer avatar fzzio avatar gabiito avatar gabrielfs001 avatar gchikovanii avatar github-actions[bot] avatar gorynych avatar hafijul233 avatar jalandis avatar jayesh-mahato avatar joaorb64 avatar jvlomazzi avatar laurentcodes avatar liopoos avatar megadreamsbe avatar mwaijohn avatar naeralys avatar neutrino-dgada avatar scottgigante avatar slackero avatar syihammusoffa avatar valerianpereira avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

countries-states-cities-database's Issues

Accents

Good work here,

Just one thing, I have noticed many of the accents are not showing correctly. Is this just me or there is an issue with the encoding? I am referring to the SQL files, for instance, cities.sql.

SQL File Encoding Incorrect

The SQL database dumps are not correctly encoded. Therefore, special characters are not exported properly. This results in the data files containing strings like these:

AÄ«bak
Montréal
Colón Department

Based on the meta data in the SQL files, it seems that you are using utf8mb4 as your DB encoding. To export the data in the correct format, specify the encoding when exporting the data, as shown here:

mysqldump -u user_name -p database_name --default-character-set=utf8mb4 --result-file=date_file_name.sql

If you re-export the SQL files, I will test them for you.

Cities lists are incorrect

I've noticed that there are plenty of cities are incorrect, lots of duplicated and added from other countries just check the json file for: "Zirakpur" for example.

Ladakh - India

Ladakh a new U.T. was carved out of Jammu & Kashmir state in India. Leh & Kargil are the two cities in Ladakh. Earlier the two cities were in Jammu & Kashmir state

MySQL characters are not correct

I found that some MySQL city and state characters encoding are wrong can you please fix it and update code.
One example:-
Rožaje Municipality

Adding Feature : "Search cities b country"

Hello, I'm interested to contribute to this project, How about adding feature :
"Getting all cities by country " I can get all the cities listed for the country I will select

Wrong States with Australia

The states table contains results for Australia, country ID 14, that are not present in Australia. Will send through an update shortly

Cities list STILL incorrect

Cities are still wrong, there are Italian cities duplicated in multiple countries in the JSON file, about 843 of them. Please look at how often "Acquaviva delle Fonti" repeats for example in the states of Korea "Kyeongsangbuk" it is repeated
60200380-027c9e00-9814-11e9-9744-ed77162b517e

United kingdom data is wrong

Some thing is wrong with the United kingdom data. All states have the same cities. Cities and States are also wrong. Check screenshot

Missing states for Venezuela

Hello Friend! 😁

Checking the countries+states.json I realized that the following states were missing for Venezuela:

  • Estate: Apure, Capital: San Fernando de Apure
  • Estate: Falcón, Capital: Coro

Also, for the state Federal Dependencies of Venezuela, its correct name would be Distrito Capital, whose capital is Caracas

Counties are not Cities, Misc Stuff...

In cities.sql, I live in id=118291 (a county) and also live in id=121951 (city)

Also, you are missing a Minneapolis listing (KS, MN and NC...) https://en.wikipedia.org/wiki/Minneapolis,_North_Carolina

... and, in countries.sql there are places like Vatican and US Minor Outlying Islands that don't have states/"administration areas" or cities - where I am getting with this is, please add latitude and longitude to records on countries.sql and states.sql

Skipped a Step

I uploaded this and began to play with it. Since I live in the United States, I see all 50 states and a few of the U.S. Territories, but I am also seeing cities such as Byram in Mississippi and Trimble in Missouri, and other cities before selecting the proper state.

Add abbreviations to states and adding zip/postal codes

First of, I'd like to thank you for this great list. it would be great to add states abbreviations as well as postal/zip codes for each city if applicable. I know the list will grow big, but it can be handled through bunch of API calls to size it down.

Thanks!

Writing in the Issue tab... but I actually just wanted to thank you for the Countries and States database. Obviously a lot of research/work went into it, so... Thanks!

Duplicate state names for Germany

  1. There two states named Rheinland-Pfalz and Rhineland-Palatinate, actually both are same state. One is German name and other one is English name. And the cities belongs to both are different, but it can be included in any one of them(I have done a random check in google maps).
  2. Also Niederwerth can be added to Rheinland-Pfalz
  3. The same issue there with Baveria and Bayern
    The issue there in country+states+cities, countries+states json and cties, world sql files. Raising this issue to know if it's intentional or a bug.

Thank you.

Missing US cities

I noticed that the United States is missing a list of cities. Is there any chance you'll add them? If not, would you be able to recommend somewhere I could easily get a list to programmatically add to the list?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.