Google地图API超出每秒查询限制 [英] Google Maps API OVER QUERY LIMIT per second limit

查看:763
本文介绍了Google地图API超出每秒查询限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Google Maps API在地图上显示约50个地点。我正在使用客户端地理编码。我使用window.setTimeout来控制应用程序每秒发送的地理编码请求的数量。如果我每秒发送一个以上的请求,我会收到一个OVER QUERY LIMIT响应。

问题:这个限制是否应该是10次查询第二?如果是的话,那么我会做错什么?如果不是,那么Business API是否有更多的每秒查询限制?

请注意,我们的应用程序每天不会达到25,000个查询。

解决方案

地理编码器具有配额和费率限制。根据经验,您可以对10个位置进行地理编码,而不会触及查询限制(实际数量可能取决于服务器负载)。最好的解决办法是延迟当你遇到OVER_QUERY_LIMIT错误,然后重试。看到这些类似的帖子:




I am using Google Maps API to display about 50 locations on the map. I am using client side geocoding. I am using window.setTimeout to control the number of geocode requests that the application sends per second. If I send more than 1 request per second, I am getting an OVER QUERY LIMIT response.

Question: Isn't this limit supposed to be 10 queries per second? If yes, then what could I be doing wrong? If no, then does Business API has more generous queries per second limit?

Please note that our application is not going to hit the 25,000 queries per day.

解决方案

The geocoder has quota and rate limits. From experience, you can geocode ~10 locations without hitting the query limit (the actual number probably depends on server loading). The best solution is to delay when you get OVER_QUERY_LIMIT errors, then retry. See these similar posts:

这篇关于Google地图API超出每秒查询限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆