zeke / all-the-cities

🌆 All the 138,398 cities of the world with a population of at least 1000 inhabitants, in a big JSON array.
http://npm.im/all-the-cities
MIT License
280 stars 42 forks source link

get state of city #9

Open sandrodesantis opened 5 years ago

sandrodesantis commented 5 years ago

Hi,

Currently, the library doesn't return the state of the city and to some cases, there are cities duplicated in the same country, but it is correct because are a different state.

How can I get the state of the city, this enchantment is scheduled to next version or I need to use another library to complement the information.

Case need another library, could you me indicate one?

Thanks a lot,

zeke commented 5 years ago

The data in this module comes from the cities1000 module, which is in turned derived from the data at http://download.geonames.org/export/dump/

Unfortunately, cities1000 is no longer maintained by its author, and though I've tried to reach out to him I never get responses any more. Also the build process used to convert the geonames data files into a module is not included in that repo. So.. we may need to start a new project to re-compile all that city data.

baermathias commented 3 years ago

@zeke Here is an updated version of the cities1000.txt: https://download.geonames.org/export/dump/cities1000.zip

drveresh commented 3 years ago

@zeke Are you planning to support adding State in the response?