iOS中的Google API OVER_QUERY_LIMIT问题 [英] Google API OVER_QUERY_LIMIT issue in iOS

查看:137
本文介绍了iOS中的Google API OVER_QUERY_LIMIT问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有典型的问题。


  1. 之后,我需要显示驾驶
  2. 为此,我使用Google API 10次获取10次驾驶距离。

  3. 但是,由于谷歌不允许在一秒钟内多次击中,所以谷歌正在返回1或2响应后OVER_QUERY_LIMIT。



    有谁可以告诉我该怎么做,以便所有的驾驶距离是否正确?

  4. Google API速度太快。它们不限制请求的总数,而是限制请求的数量。每秒约10个请求或多或少是您允许访问API的最快速度。


    I have typical issue.

    1. I am hitting Place search API and Getting Results.
    2. After that i need Show the Driving Distance for each of the Place to display.
    3. To do so i am hitting Google API 10 times to fetch 10 Driving distance.
    4. But as google does not allow multiple hit within a seconds, So google is returning OVER_QUERY_LIMIT after 1 or 2 response.

      Can anybody tell how can i do so that all the driving distances come correctly ?

    解决方案

    Make sure that you're not hitting the Google API too fast. They don't limit the total number of requests but the rate of requests. About 10 requests per second is more or less the fastest you're allowed to hit their APIs.

    这篇关于iOS中的Google API OVER_QUERY_LIMIT问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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