JavaScript Maps API v3配额,它们是如何工作的? [英] JavaScript Maps API v3 quotas, how do they work?

查看:80
本文介绍了JavaScript Maps API v3配额,它们是如何工作的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要通过谷歌地图访问各种地图数据,并试图弄清楚配额和安装是如何工作的。



已经完成,似乎是通过 JavaScript Maps API v3 (它允许每天25,000个请求),如果你愿意的话,我可以访问下面的'sub API's'。


  • 地理编码API |每天2,500次请求

  • 地理定位API |每天100次请求

  • Directions API |每天2,500次请求

  • Places API |每天1,000个请求

  • 每个都需要一个API密钥(包括JavaScript Maps API v3),并且每个都有自己的配额限制。尽管如此,它的摆放方式令人困惑。看起来,他们可以使用JavaScript Maps API v3进行访问,该地图具有25,000个地图加载限制或单独加载。



    如果他们单独加载,那么当单独的配额踢了吗?



    注意:我还发现 this page 其中指出:


    使用API​​密钥提交请求的应用程序允许1,000
    每24小时的请求次数。


    这引发了另一个问题,我真的很困惑这一切文档。底线是我需要访问上述5个粗体项目。是否就像使用 JavaScript Maps API v3 访问其他4个一样简单,所有请求都将落入25,000个请求配额?



    任何谷歌地图大师在那里?

    解决方案

    有两种方法可以访问这些API:


    1. 作为JavaScript API v3库/服务

    2. RESTful HTTP Web服务

    地图加载被计算在内,您可以在理论上执行尽可能多的服务调用。但是,如果您只是通过请求敲击服务,您将遇到OVER_QUERY_LIMIT响应。 (查看这个问题



    对于RESTful Web服务,您已经找到的限制适用。


    I need to access all sorts of map data through Google Maps and I'm trying to figure out how the quota's and installation works.

    From the reading I've done, it seems that with JavaScript Maps API v3 (which allows for 25,000 requests per day) installed, I'll have access to the following 'sub API's' if you will.

    It looks like each will require an API key (including JavaScript Maps API v3), and each has it's own quota limit. It's laid out in a confusing way though. It seems that they can be access using the JavaScript Maps API v3 which has a 25,000 map load limit, or individually loaded.

    If they are individually loaded, is that when the separate quota kicks in?

    Note: I also found this page which states that

    Applications that submit requests with an API key are allowed 1,000 requests per 24 hour period.

    This throws another wrench into the whole thing and I'm really confused with all of this documentation. The bottom line is that I will need access to the above 5 bolded items. Is it as simple as just using JavaScript Maps API v3 to access the other 4, and all requests made will fall into the 25,000 request quota?

    Any Google Map gurus out there?

    解决方案

    There are two ways to access these APIs:

    1. As a JavaScript API v3 library/service
    2. As RESTful HTTP Web Service

    For the JavaScript API, only map loads are counted and you could in theory perform as many services calls as you want. However, you will run into OVER_QUERY_LIMIT responses if you just hammer the service with requests. (see for example this question)

    For the RESTful web services, the limits you already found apply.

    这篇关于JavaScript Maps API v3配额,它们是如何工作的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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