yaph / geonamescache

geonamescache - a Python library for quick access to a subset of GeoNames data.
https://pypi.org/project/geonamescache/
MIT License
99 stars 38 forks source link

Adds admin1code to cities.json #20

Closed genmon closed 5 years ago

genmon commented 5 years ago

In the US, admin1code corresponds to the state code, e.g. "FL" for the city Miami. This provides a useful correspondence between the methods get_cities and get_us_states.

A test has also been added.

The output JSON data has not been rebuilt.