您已超出此API的每日请求限额。 Google Places API iOS Swift [英] You have exceeded your daily request quota for this API. Google Places API iOS Swift
问题描述
我正在尝试在一个非常简单的应用中使用Google Places API。我只想找到当前位置附近的所有购物中心。我使用了这个网络服务:
I am trying to use Google Places API in a very simple app. I just want to locate all the shopping malls near the current location. I used this web service:
它正常工作,但现在我收到以下错误消息:
It was working, but now I am getting the following error message:
{
"error_message" : "You have exceeded your daily request quota for this API.",
"html_attributions" : [],
"results" : [],
"status" : "OVER_QUERY_LIMIT"
}
我该如何避免这种情况?此外,在创建服务器密钥时,我没有提供任何IP地址,因为我没有任何服务器。我不想为这项简单的服务支付任何费用。无论如何我们可以避免它或任何其他免费替代方案吗?
How can I avoid this? Also, while creating server key, I did not provide any IP address, as I don't have any server. I don't want to pay anything for this simple service. Is there anyway we can avoid it or any other free alternative?
推荐答案
几乎每个Google API都有每日免费配额。对于Google Places API,每天有2500个请求,每秒10个请求。如果您想使用更多,我建议启用结算。如果您仍想使用免费配额,请等待一天再次获得这2500个请求。
Almost every Google API has a daily free quota. For Google Places API it's 2500 requests per day and 10 requests per second. If you want to use more than that, I would suggest to enable billing. If you still want to use the free quota, please wait for a day to get those 2500 requests again.
P.S。 :配额基于特定帐户。如果您使用的是随机的,请使用Google API控制台制作自己的API密钥。
P.S. : The quota is based on specific accounts. Please make your own API key using Google API console if you're using a random one.
希望有所帮助。
这篇关于您已超出此API的每日请求限额。 Google Places API iOS Swift的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!