[英]Google Geolocation API - You have exceeded your daily request quota for this API
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 我正在尝试获取webservice查询中特定位置的纬度和经度值,但是当我尝试获取它时,我得到了这个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]". “您已超出此API的每日请求配额。如果您未设置自定义每日请求配额,请验证您的项目是否有有效的结算帐户: http : //g.co/dev/maps-no-account [results] ”。
My problem is that I have and API key and I added it to my query. 我的问题是我有和API密钥,我把它添加到我的查询。 On my project's console, I've added the geo location API and copied my API key. 在我的项目控制台上,我添加了地理位置API并复制了我的API密钥。 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. 我不知道哪个可能是问题,因为error_message说"... maps-no-account"
但我有我的API密钥,然后我认为API密钥与我的帐户有关,但它似乎不起作用。 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? 如果没有付费报价就无法与谷歌合作,那还有其他有用且免费的工具吗?
The error message is quite clear. 错误信息非常清楚。
You are allowed to make some requests and you have used those requests up. 您可以提出一些请求,并且已经使用了这些请求。
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. Geolocation api不是免费的API,您必须付费使用它并使用结算检查您的结算帐户可能是为创建您的API密钥的开发者帐户设置的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.