4
votes

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?

1
Thanks! I've been able to use this web page to be able to query what I needed. It's been very useful! - ChicoDeLosGatos

1 Answers

0
votes

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.