Google Maps API OVER QUERY LIMIT 每秒限制 [英] Google Maps API OVER QUERY LIMIT per second limit

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

问题描述

我正在使用 Google Maps API 在地图上显示大约 50 个位置.我正在使用客户端地理编码.我正在使用 window.setTimeout 来控制应用程序每秒发送的地理编码请求的数量.如果我每秒发送 1 个以上的请求,我将收到 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.

问题:这个限制不应该是每秒 10 次查询吗?如果是,那么我可能做错了什么?如果不是,那么 Business API 是否有更大的每秒查询次数限制?

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

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

推荐答案

地理编码器有配额和速率限制.根据经验,您可以在不达到查询限制的情况下对大约 10 个位置进行地理编码(实际数量可能取决于服务器负载).最好的解决方案是在出现 OVER_QUERY_LIMIT 错误时延迟,然后重试.查看这些类似的帖子:

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:

如何在不收到 OVER_QUERY_LIMIT 响应的情况下对 20 个地址进行地理编码?

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

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