@datagica/parse-cities
v0.0.15
Published
City parser. Warning: initial module loading time is slow.
Downloads
8
Readme
City parser
Extract cities from a text.
Installation
$ npm install ---save git+https://[email protected]/datagica/parse-cities.git
Usage
See unit tests
Notes
Warning: the module uses lazy loading: the first time you call a method, it will take about 45sec to 1min (non-blocking) because it has to load this huge list of about 750,000 world cities, generating foreign names on the fly.
Copyright notice
The data comes from this free dataset (please note it has been transformed):
- http://dev.maxmind.com/geoip/legacy/geolite/
- http://dev.maxmind.com/geoip/geoip2/geolite2/