Skip to content

GEOCODER needs API-KEY? #242

@jmellian

Description

@jmellian

The unit-test voor geocode fails. Nothing changed here. See stack trace below.
Probable because the API-KEY has expired? Anyone has on idea?

=============================
Traceback (most recent call last):
File "/home/travis/build/developmentseed/landsat-util/tests/test_utils.py", line 109, in test_geocode
loc = utils.geocode('1600 Pennsylvania Ave NW, Washington, DC 20500')
File "/home/travis/build/developmentseed/landsat-util/landsat/utils.py", line 328, in geocode
geocoded = geocoder.google(address)
File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/geocoder/api.py", line 195, in google
return get(location, provider='google', **kwargs)
File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/geocoder/api.py", line 161, in get
return options[provider][method](location, **kwargs)
File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/geocoder/base.py", line 708, in init
provider_key = self._get_api_key(kwargs.pop('key', None))
File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/geocoder/base.py", line 687, in _get_api_key
raise ValueError('Provide API Key')
ValueError: Provide API Key

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions