World cities in json format
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.
admin2 added, latest Geonames dump used. Number of places is now 178K instead of 150K.
[
{
"id": "5368361",
"name": "Los Angeles",
"country": "US",
"admin1": "California",
"admin2": "Los Angeles County",
"lat": "34.0522300",
"lon": "-118.2436800",
"pop": "3820914"
}
]
GeoNames Gazetteer extract files: http://download.geonames.org/export/dump/
This work is licensed under a Creative Commons Attribution 4.0 License