akexorcist / GoogleDirectionLibrary

[Android] Library for Google Direction API for Google Maps Android API v2
Apache License 2.0
571 stars 174 forks source link

KEEP GETING REQUEST DENIED #72

Closed IanLaFlair closed 4 years ago

IanLaFlair commented 5 years ago

Hello, pls help my i am keep getting request denied ? already regenerate the api key

akexorcist commented 4 years ago

Do you generate it as Web API Key in Google Cloud Platform Console?

The Direction API is only Web API. You have to generate the new one as Web API Key not Android API Key in Google Maps API for Android

srikanthnama commented 4 years ago

If I want to restrict the API key, how do I do that? any specific http referrers that I need to add?

srbensakina commented 4 years ago

I keep getting it too plz help

akexorcist commented 4 years ago

@srikanthnama This library use the web API (there's no SDK for mobile support). So you can't restricted the API request. For the security concern, don't keep the key in the project directly. Please provide some API for the key to use it after logged in.

Collpool2019 commented 4 years ago

Hello, pls help my i am keep getting request denied ?

Collpool2019 commented 4 years ago

@akexorcist please provide a detailed solution as I generated an API key with application restrictions=none and API restrictions = don't restrict API but still it shows REQUEST_DENIED. PLEASE HELP.

Collpool2019 commented 4 years ago

@akexorcist IS GOOGLE BILLING ACCOUNT NECESSARY FOR USING YOUR THIS DIRECTIONS API

akexorcist commented 4 years ago

@CollPool2019 Yes, it is. Direction API is not free

var2611 commented 4 years ago

Direction API call is limited to 1 Daily if there is no billing account. When you attach billing account it's limit for free will be increased to 1000 per month.