How to use the geonamescache.geonamescache.GeonamesCache.get_continents function in geonamescache

To help you get started, we’ve selected a few geonamescache examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github yaph / geonamescache / geonamescache / geonamescache.py View on Github external
import geonamesdata

class GeonamesCache:

    def get_continents(self):
        return geonamesdata.continents

    def get_countries(self):
        return geonamesdata.countries

    def get_us_states(self):
        return geonamesdata.us_states

if __name__ == '__main__':
    print GeonamesCache().get_continents()