yaph / geonamescache

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

get states from other countries #35

Open franasal opened 2 years ago

franasal commented 2 years ago

would it also be possible to query states/departments from other countries outside the USA?

yaph commented 2 years ago

It's not included in the current datasets, so the package would need to be expanded.

FlorisFok commented 2 years ago

This is a usefull database: https://github.com/dr5hn/countries-states-cities-database

Will add if I made something usefull.

yaph commented 2 years ago

The datasets look quite comprehensive. Do you know what the data sources of this project are?

pigden commented 1 month ago

Could I add the admin2code to the cities reference data as for the UK/GB this would bring down the counties (equivalent to state)? admin1code for the UK is currently the country within the UK/GB that the city sits in (England/Scotland/Wales/Northern Ireland).

Screenshot 2024-09-17 at 12 20 07

yaph commented 1 month ago

Thanks for the suggestion Chris! At the moment I don't want to increase the size of the datasets, because of my LFS storage limit.