4

I'm trying to get the latitude and the longitude values for an specific place in a webservice query, but when I try to get it, I get this error_message

"You have exceeded your daily request quota for this API. If you did not set a custom daily request quota, verify your project has an active billing account: http://g.co/dev/maps-no-account [results]".

My problem is that I have and API key and I added it to my query. On my project's console, I've added the geo location API and copied my API key. Here my query:

$url = 'https://maps.google.com/maps/api/geocode/json?key={mykey}&address=%22' . $city . '%22&sensor=true';

I don't know which could be the problem, because the error_message says "... maps-no-account" but I have my API key, then I suppose that the API key is related with my account, but it seems not working. If Any idea?

If it's not possible to do it with Google without paying quote, is there any other useful and free tool for my purpose?

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449
ChicoDeLosGatos
  • 57
  • 3
  • 13

1 Answers1

0

The error message is quite clear.

  • you have exceded your daily request quota for this api.

You are allowed to make some requests and you have used those requests up.

  • verify billing is active on your account.

The Geolocation api is not a free api you must pay to use it usage and billing check that your billing account has been probably set up for the developer account which created your api key.

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449
  • I wonder why it could be that, because I had only been able to make a query. Also, in the error message, it gives me to understand that I am not using any user, which is false. I was also looking for an alternative, but I have already found it, I will use the tech.yandex.com/maps/mapsapi website. Anyway, thanks for the answer! :) – ChicoDeLosGatos Sep 19 '18 at 10:54
  • The api key is a user. As far as i know there is no free quota for that api you need to enable billing before its going to work at all. Please remember to accept the answer if it helped you – Linda Lawton - DaImTo Sep 19 '18 at 11:15
  • @DaImTo What about 200$ monthly free quotes ? – Eslam Sameh Ahmed Jan 30 '22 at 14:24
  • I dont know of any $200 a month free quota sorry. I know when you first create your Google developer account they give you a single $200 try out money but thats not something that your going to get every month. You still have to set up a billing account to use it. Including adding your credit card info. – Linda Lawton - DaImTo Jan 31 '22 at 07:46