-2

I am developing model to calculate origin to destination using Python3. I tried google-maps-services-python from github and obtain an error.

[API Key already enabled][1]

ApiError: REQUEST_DENIED (This API project is not authorized to use this API. Please ensure this API is activated in the Google Developers Console:)

However the same key I tried work as http request over browser.

The API key did not apply any key restriction
[API key did not apply any key restriction][2]

Any idea what need to be done?

Iven
  • 1
  • 6
  • Maybe take a look to [this question](http://stackoverflow.com/questions/32994634/this-api-project-is-not-authorized-to-use-this-api-please-ensure-that-this-api). Cheers. – lrnzcig Feb 21 '17 at 14:13
  • I checked repeatly where the API was activated and it worked over web browser. Thanks @orvi anyway. – Iven Feb 21 '17 at 14:28
  • 1
    Possible duplicate of [This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console](http://stackoverflow.com/questions/32994634/this-api-project-is-not-authorized-to-use-this-api-please-ensure-that-this-api) – Steve Czetty Feb 21 '17 at 14:35

1 Answers1

0

Solution

In order to make it direct query from IPython, you need both API enabled.

-Google Maps Directions API

-Google Maps Geocoding API

Thanks problem solved.

Iven
  • 1
  • 6