Skip to content

Rebuild all country zipfiles starting from geonames.org allCountries.zip file

License

Notifications You must be signed in to change notification settings

d4rkstar/geonames-zip-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Geonames Zip Generator

Generates countries zip files from allCountries.zip

Sometimes it happens that the geonames.org zip code download service is not available.

By retrieving the allCountries.zip file from the network, it is possible to regenerate all the individual country zips using the attached extract.py script.

Clone the repository, replace the allCountries.zip file and run the command:

python extract.py

In the "countries" directory you will find the zip files.

If, like me, you use odoo and the base_location_geonames_import module, you can use the zip obtained by placing the files on your webserver (or using the webserver integrated in python) and modifying the system parameter "geonames.url" in this way:

https://domain/subpath /% s.zip

where domain = your domain subpath = any subpath

Disclaimer

All data are from Geonames: http://www.geonames.org/

About

Rebuild all country zipfiles starting from geonames.org allCountries.zip file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages