npm.io
0.0.15 • Published 9 years ago

@datagica/parse-cities

Licence
GPL-3.0
Version
0.0.15
Deps
1
Vulns
0
Weekly
0

City parser

Extract cities from a text.

Installation

$ npm install ---save git+https://git@github.com/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.

The data comes from this free dataset (please note it has been transformed):