24
votes

I want to retrieve address from lat long coords. I have created project in google console. Added Billing information and enabled the geocoding api services. But still when i make this request i am getting the below error

https://maps.googleapis.com/maps/api/geocode/json?latlng=41.89,12.49&key=xxxx

You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project/_/billing/enable

6
Is that billing account associated with the key?geocodezip

6 Answers

33
votes

I was also Facing the same issue, Billing is enabled and is linked to the project but I was getting the same Error.

After Spending enough time on this issue, I understood that the type of my billing account is "Google Cloud Platform", but it should be of type : "Google Maps Platform"

You can see the type of your billing account on the right side of Billing Overview as in the image:

enter image description here

So please check if your Billing type is "Google Maps Platform", if not create a new Billing Account with "Google Maps Platform" as type and link your project to this Billing Account.

10
votes

Most of us are getting this response/error

{
   "error_message" : "You must enable Billing on the Google Cloud Project at <br>https://console.cloud.google.com/project/_/billing/enable Learn more at https://developers.google.com/maps/gmp-get-started",
   "predictions" : [],
   "status" : "REQUEST_DENIED"
}

If you will read this answer throughly you'll be able to sort out this issue.

As mentioned in this answer.
You'd have to create a separate billing account in order to use Google Map APIs because google map bills in USD currency instead of your native currency.

Solution(3 step)

  1. create a new billing account.
  2. create a new project and associate it with above billing.
  3. enable Map API and create a new API key. that's it.

Step1: create a new billing account, you can use this link https://console.cloud.google.com/billing/create and Choose Google Map Platform from the dropdown.

enter image description here

Step2: create a new project using this link https://console.cloud.google.com/projectcreate and use billing account created above.

enter image description here

Step3: Now you can enable particular API and you're good to go. That's it.

8
votes

Make sure that the API key you are using to authenticate the request is from a project that has an active billing account. If not, your requests will fail and if you are using Javascript API, your map will get the "Degraded experience".

Below are some of the links we have that could be helpful in your use case.

Once everything is set up, you can always file a support case via https://console.cloud.google.com/google/maps-apis/support in order to open personalized communication channel whenever you are encountering issues with our product.

Thank you and hope this helps!

3
votes
  1. Go back to the billing account and see if something went wrong with your credit card. Credit cards are validated asynchronously.
  2. Go to the GCP Console and verify that your billing account is assigned to the project.
  3. In the GCP Console check for past due amounts.

After you assign/modify a credit card, wait. The process is not instant in (re)authorizing billing for your account.

1
votes

I had the same issue. I was doing everything correct. then I found this link

Gmp india faq

The problem was Google maps billing doesn't support INR Currency.

Please check if your currency compatible with Google Maps billing platform otherwise create new billing account with USD currency.

Thanks!

You may find this link helpful

Modify a project billing settings

0
votes

For those of you who enabled their billing account through the link in the error message but still get the error, or can't find "Enabled google service" as someone else suggested, simply just delete your browsers cache and try again.