lejard-h / google_maps_webservice

BSD 3-Clause "New" or "Revised" License
168 stars 225 forks source link

distance response REQUEST_DENIED #37

Closed temirfe closed 5 years ago

temirfe commented 5 years ago

I am using right api_key as shown in the example: final GoogleDistanceMatrix distanceMatrix = GoogleDistanceMatrix( apiKey: Platform.environment["my_api"]); but getting error request denied

lejard-h commented 5 years ago

Did you enable billing on your api key ? https://developers.google.com/maps/documentation/distance-matrix/get-api-key

Reminder: To use the Distance Matrix API, you must get an API key and you must enable billing. You can enable billing when you get your API key (see the Quick guide) or as a separate process (see Usage and Billing).

And check if it is enable on your console https://console.cloud.google.com