geonamescache

Geonames data for continents, cities and US states
Download

geonamescache Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Ramiro Gómez

geonamescache Tags


geonamescache Description

geonamescache is a Python library that provides functions to retrieve names and codes of continents, countries and US states as Python dictionaries.Geonames data is obtained from GeoNames.InstallationTo install geonamescache, run: sudo pip install geonamescacheOr, if necessary: sudo easy_install geonamescacheUsageA simple usage example:import geonamescachegc = geonamescache.GeonamesCache()countries = gc.get_countries()# print countries dictionaryprint(countries)# you really wanna do something more useful with the data...MethodsCurrently geonamescache provides the following methods, that all return dictionaries with the requested data:- get_continents()- get_countries()- get_us_states()Contributing1. Fork the repository on GitHub2. Create your feature branch (git checkout -b my-new-feature)3. Commit your changes (git commit -am 'Added some feature')4. Push to the branch (git push origin my-new-feature)5. Create new Pull RequestProduct's homepage


geonamescache Related Software