简体   繁体   English

Google Maps API密钥-限制

[英]Google maps api key - limits

Will my API key be blocked for rest of the day when I reach the daily requests limit? 达到每日请求限制后,我的API密钥是否会在一天的其余时间内被阻止? I don't want to buy billing plan or get unexpected charges. 我不想购买计费方案或得到意外费用。

https://developers.google.com/maps/faq#usage_exceed https://developers.google.com/maps/faq#usage_exceed

You won't be charged, but your API will return an error message. 您无需付费,但是您的API将返回错误消息。

It is my impression that as you approach your daily quota limit the system starts giving errors. 我的印象是,随着您接近每日配额限制,系统开始出现错误。 For example, during the last 4 hours of the day the errors gradually increase with perhaps 100% errors during the last hour. 例如,在一天的最后4个小时内,错误逐渐增加,最后一个小时内可能出现100%错误。

Most days the total allowed requests has been within my quota. 大多数情况下,允许的请求总数都在我的配额之内。 One day it went over, like 2645 versus my 2500 daily quota. 一天过去了,例如2645与我的2500个每日配额。

I have tried to spread the error misery evenly around the world by limiting the accesses to 3 per 100 secs. 我试图通过将访问限制为每100秒3次来在世界范围内平均分散错误的痛苦。 This may be working but I have not seen any errors shown on the graphs as being due to exceeding the 100 secs quotas, which is surprising since I am often exceeding 0.04 requests per sec (5 min average). 这可能有效,但是我没有看到图表中显示的任何错误是由于超出了100秒的配额,这令人惊讶,因为我经常超过每秒0.04个请求(平均5分钟)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM