https://github.com/nabilashraf/cities1000
lat/lon, population, name of cities with over 1000 people from geonames.org
https://github.com/nabilashraf/cities1000
geonames-cities latitude-and-longitude population
Last synced: 4 months ago
JSON representation
lat/lon, population, name of cities with over 1000 people from geonames.org
- Host: GitHub
- URL: https://github.com/nabilashraf/cities1000
- Owner: nabilashraf
- Created: 2018-02-22T11:21:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T19:58:37.000Z (almost 3 years ago)
- Last Synced: 2025-05-16T22:15:55.758Z (5 months ago)
- Topics: geonames-cities, latitude-and-longitude, population
- Language: JavaScript
- Homepage:
- Size: 8.85 MB
- Stars: 22
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cities1000
This is a dataset with the latitude and longitude of all cities on planet earth
with greater than 1000 people.**Last Updated at 18 March 2020**
You can find the original on
[geonames.org](http://download.geonames.org/export/dump/).# example
```
var fs = require('fs');
var cities = require('cities-with-1000');
var lines = fs.readFileSync(cities.file, 'utf8').split('\n');
// ...
```# attributes
``` js
var cities = require('cities-with-1000');
```## cities.file
Open the `cities.file` for reading as a tab-separated text file.
## cities.fields
This is the array of fields in the `cities.file` text file.
# license
copyright [geonames.org](http://www.geonames.org/)
creative commons attribution 3.0
([CC-BY](http://creativecommons.org/licenses/by/3.0/))