Skip to content

Releases: dr5hn/countries-states-cities-database

v3.1

27 Feb 15:06
45317db

Choose a tag to compare

Changelog β€” v3.1

🌍 New Data Added

  • Add missing cities for Saudi Arabia, Japan, fix data quality issues and remove duplicates
  • Add population and GDP column in countries and native data
  • Add population in cities table
  • Add timezone support for all cities using geographic coordinates
  • Add translations.csv export for country, region, and subregion name translations
  • Add DuckDB import script and GitHub Actions integration for database format conversion
  • Add MCP Server Integration for GitHub Copilot Agents
  • Add Claude Code GitHub Workflow
  • Add toon & geojson script

Countries & Regions

  • Afghanistan β€” Add missing Wardak province and cities
  • Angola β€” Add missing Namibe province and cities with translations (ISO 3166-2:AO)
  • Azerbaijan β€” Add 3 missing municipalities with Wikipedia-sourced translations (ISO 3166-2:AZ)
  • Bahamas β€” Align districts with ISO 3166-2:BS (42β†’32 states)
  • Bangladesh β€” Add 64 districts with multilingual support and reassign cities (ISO 3166-2:BD)
  • Botswana β€” Fix missing districts, towns and cities
  • Cabo Verde β€” Add missing SΓ£o Salvador do Mundo municipality (CV-SS)
  • Cambodia β€” Add missing Tboung Khmum province (ISO 3166-2:KH)
  • CΓ΄te d'Ivoire β€” Restructure administrative divisions per ISO 3166-2:CI
  • Dominican Republic β€” Add missing province and 10 regions per ISO 3166-2:DO
  • Equatorial Guinea β€” Add missing Djibloho province (GQ-DJ)
  • Estonia β€” Add municipalities and update county ISO codes per ISO 3166-2:EE
  • Ethiopia β€” Add missing Sidama (ET-SI) and Southwest Ethiopia Peoples (ET-SW) states; reassign 12 cities
  • France β€” Add missing Nouvelle-CalΓ©donie (New Caledonia) overseas collectivity
  • Guinea-Bissau β€” Add missing Bissau autonomous sector (GW-BS)
  • Iceland β€” Add 64 missing municipalities per ISO 3166-2:IS
  • Indonesia β€” Add 7 missing geographical units per ISO 3166-2:ID
  • Iraq β€” Add missing Kurdistan Region (IQ-KR) per ISO 3166-2:IQ
  • Italy β€” Add 15 missing administrative divisions per ISO 3166-2:IT
  • Libya β€” Add missing Al Butnan province and cities per ISO 3166-2:LY
  • Lithuania β€” Add 7 city municipalities per ISO 3166-2:LT
  • Maldives β€” Fix administrative divisions per ISO 3166-2:MV
  • Malta β€” Add missing Safi local council (MT-47)
  • Marshall Islands β€” Add 24 municipalities per ISO 3166-2:MH
  • Moldova β€” Add missing Leova district (ISO 3166-2:MD)
  • Monaco β€” Add 14 missing quarters per ISO 3166-2:MC with translations
  • Montenegro β€” Add missing municipalities
  • Niger β€” Add missing Niamey urban community (NE-8)
  • North Korea β€” Add missing metropolitan cities (Nampho, Kaesong)
  • North Macedonia β€” Update municipality data
  • Oman β€” Fix governorate structure per ISO 3166-2:OM
  • Pakistan β€” Remove deprecated FATA state, merge cities into Khyber Pakhtunkhwa (ISO 3166-2:PK)
  • Panama β€” Add missing Naso TjΓ«r Di indigenous region (PA-NT)
  • Paraguay β€” Add 4 cities to Central department and fix Asuncion
  • Peru β€” Add missing PE-LMA (Municipalidad Metropolitana de Lima)
  • SΓ£o TomΓ© and PrΓ­ncipe β€” Fix administrative divisions per ISO 3166-2:ST
  • Serbia β€” Add missing administrative divisions per ISO 3166-2:RS
  • Seychelles β€” Add 3 missing districts per ISO 3166-2:SC
  • Sierra Leone β€” Add missing province and cities
  • Slovenia β€” Add missing Velenje urban municipality (SI-133)
  • Somalia β€” Add missing Sool and Woqooyi Galbeed regions (ISO 3166-2:SO)
  • Spain β€” Add 3 missing autonomous communities per ISO 3166-2:ES; fix 474 city name prefixes and apostrophes
  • Taiwan β€” Add missing Chiayi County (TW-CYQ) and Hsinchu County (TW-HSQ)
  • Tajikistan β€” Add missing capital territory Dushanbe (TJ-DU)
  • Timor-Leste β€” Add missing Oecusse-Ambeno special administrative region
  • Trinidad and Tobago β€” Fix administrative divisions to match ISO 3166-2
  • UK β€” Update countries to include states and cities
  • Wallis and Futuna Islands β€” Add missing administrative precincts (ISO 3166-2:WF)
  • Yemen β€” Add missing Ad Dali' governorate (YE-DA); fix city timezones, remove duplicates

πŸ› Bug Fixes

  • Fix duplicate states: remove 16 duplicate state records and reassign 30 cities
  • Fix city assignments: move 130 Irkutsk Oblast cities from Sevastopol to correct state
  • Fix Γ…land Islands duplication: remove duplicate state entry from Finland
  • Fix 178 data integrity issues in contributions JSON files
  • Fix Poland cities: remove 314 powiats incorrectly classified as cities
  • Fix Chile: remove comunas incorrectly listed as cities in RegiΓ³n Metropolitana
  • Fix timezone inconsistencies: add Etc/GMT filtering and update states data
  • Fix NULL handling in export workflow (Antarctica subregion_id)
  • Fix DuckDB conversion failure with individual SQLite table files
  • Fix Bahrain: remove Central governorate
  • Fix Bosnia and Herzegovina: remove extra cantons
  • Fix Saint Lucia: remove extra districts
  • Fix state & city names across multiple countries
  • Fix currency and currency_symbol for Western Sahara and Congo
  • Fix Vietnam state codes and The Gambia country name whitespace
  • Fix Albania states and Greece states and cities
  • Fix Ivory Coast English and Native Name
  • Fix French cities native names
  • Fix state population cast to integer in JSON exporter
  • Add missing timezones and fix typos
  • Remove duplicate cities (Shaw/US, Canberra/Australia)

πŸ—„οΈ Schema & Infrastructure

  • Refactor world.sql: clean up table drop statements, add timezone field
  • Fix schema file formats: add PostgreSQL schema export, remove SQL Server schema
  • Restructure contributions workflow
  • Streamline README content and improve clarity
  • Add changelog functionality
  • Add GitHub Copilot instructions

New Contributors

Full Changelog: v3.0...v3.1

v3.0

02 Aug 11:53
4916592

Choose a tag to compare

!!Breaking Change

  • BREAKING CHANGE: Updated keys in states.json from 'state_code' to 'iso2' for consistency.

What's Changed

New Contributors

Full Changelog: v2.6...v3.0

v2.6

25 Mar 06:37
1443c3b

Choose a tag to compare

What's NEW!

  • SQL Server support by @dr5hn in #906
  • MongoDB support by @dr5hn in #967
  • Added Parent ID and Levels in States table to accomodate different hierarchies of countries with different structures.

What's Changed

BREAKING Change

  • Drop support for additional xml, sqlite, yml combination files by @dr5hn in #907
  • Removed states+cities.json file. by @dr5hn in b19d5b7
  • Optimised countries+states.json and countries+cities.json file content with only name of the entities. by @dr5hn in b19d5b7

New Contributors

Full Changelog: v2.5...v2.6

v2.5

13 Oct 13:22
660dd0e

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.4...v2.5

v2.4

07 Sep 14:15
2e18b2e

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.3...v2.4

v2.3

07 Jul 08:31
d75d669

Choose a tag to compare

What's New πŸš€

  • [Feature] Add SQLite database support in the export workflow by @navicraft in #781
  • [Feature] Improve PostgreSQL Data Export @dr5hn

What's Changed πŸ”§ πŸ”¨

New Contributors

Full Changelog: v2.2...v2.3

v2.2

16 Feb 15:11
9c89297

Choose a tag to compare

What's Fixed

  • Fix error in the name of the state 1200 by @rsenses in #751
  • fix names of eswatini, timor-leste, PNG, and more by @scottgigante in #748
  • fix: Uttarakhand State code from UT to UK by @dr5hn in #752

New Contributors

Full Changelog: v2.1...v2.2

v2.1

24 Jan 08:36
aef9b85

Choose a tag to compare

What's New

What's Changed

New Contributors

Full Changelog: v2.0...v2.1

v2.0

03 Sep 11:25

Choose a tag to compare

Breaking Change

  • Add region_id column in countries table.
  • Add subregion_id column in countries table.

What's New!

What's Changed

New Contributors

Full Changelog: v1.9...v2.0

v1.9

31 Aug 11:31
ecf4b41

Choose a tag to compare

What's NEW

What's Changed

  • Change 'br' translations to 'pt-BR' to match i18n mappings by @joaorb64 in #460
  • Fix #469 Added N'Djamena city under N'Djamena region
  • Fix #474 Removed HongZhou from China
  • Fix #480 Added Nabeul state in Tunisia.
  • Fix #459 Fix co-ordinates of Hunan, China.
  • Fix #478 Updated cities of "Pirkanmaa" region.
  • Fix #464 Add missing Hillsborough & Montgomery townships to New Jersey.
  • Fix #417 Add missing cities of the Province of Ravenna.
  • Fix #380 Add missing states of Puerto Rico Country.
  • Fix #438 Add missing states and cities of the U.S. Virgin Islands.
  • Fix #422 Thornhill, Ontario, Canada Added.
  • Fix #423 Karlovac County state_code Fixed.
  • Fix #427 Fill type column for the Morocco States.
  • Fix #429 Add missing Egypt Cities.
  • Fix #430 Add missing Hungarian County and updated type column.
  • Fix #433 Fix Lat Long Infomation of Salem, Tamilnadu.
  • Fix #437 Update Nuevo LeΓ³n cities to the latest.
  • Fix #435 Remove Netherlands municipality duplicates.
  • Fix #439 Add more cities to Mauritania and Update the type column.
  • Fix #442 - Add missing cities in Kalimantan Barat by @dr5hn in #448
  • Fix: #228 Added missing Iran cities by @dr5hn in #481
  • Fix: #211 Remove New york duplicate cities by @dr5hn in #483
  • Fix: #209 Spain provinces and cities sorted by @dr5hn in #486

New Contributors

Full Changelog: v1.8...v1.9