by lutangar

lutangar / cities.json

Cities of the world in Json, based on GeoNames Gazetteer

228 Stars 50 Forks Last release: Not found 14 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Cities of the World

Creative Commons License

These cities comes from GeoNames Gazetteer:

Here is the description of the original dataset:

all cities with a population > 1000 or seats of adm div (ca 150.000) [...]


npm install --save cities.json


Either on node or the browser (with

) it get as simple as this:


const cities = require('cities.json');


import cities from 'cities.json';

Since webpack >= v2.0.0, importing of JSON files will work by default.


This Json version is an array of object of the following shape: - ISO 3166-1 alpha-2 country code - name - Latitude - Longitude

    "country": "FR",
    "name": "Lyon",
    "lat": "45.75",
    "lng": "4.583333"

These cities can pretty easily be matched with countries by code using the following dataset:


This work is licensed under a Creative Commons Attribution 3.0 License.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.