Thanks to visit codestin.com
Credit goes to github.com

Skip to content

lmfmaier/cities-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

cities.json

World cities in json format

Description

Populated places of the world (towns, cities) with a population of 500 or more, extracted from the latest GeoNames database dump. With ID (geonamesid), name, country (ISO alpha 2), admin1 (state/province), admin2 (region/county, if applicable), latitude, longitude, population. Names are extracted from GeoNames' "name" columns (probably the official name of the place in English), no alternate/local names.

Geonames feature codes used: PPL, PPLA(1-5), PPLC. These are populated places where people live and work, including capitals and administrative seats, but no sections/suburbs (PPLX), inofficial settlements or places that don't exist anymore (PPLH, PPLCH, PPLQ, PPLW). Reference: http://www.geonames.org/export/codes.html

Roughly 178K places.

Update 2025-11-05

admin2 added, latest Geonames dump used. Number of places is now 178K instead of 150K.

Format

[
  {
    "id": "5368361",
    "name": "Los Angeles",
    "country": "US",
    "admin1": "California",
    "admin2": "Los Angeles County",
    "lat": "34.0522300",
    "lon": "-118.2436800",
    "pop": "3820914"
  }
]

Source

GeoNames Gazetteer extract files: http://download.geonames.org/export/dump/

License

This work is licensed under a Creative Commons Attribution 4.0 License

https://creativecommons.org/licenses/by/4.0/

About

World cities in json format

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published