JavaScript Maps API v3配额,它们是如何工作的? [英] JavaScript Maps API v3 quotas, how do they work?
问题描述
我需要通过谷歌地图访问各种地图数据,并试图弄清楚配额和安装是如何工作的。
已经完成,似乎是通过 JavaScript Maps API v3 (它允许每天25,000个请求),如果你愿意的话,我可以访问下面的'sub API's'。 地理编码API |每天2,500次请求 地理定位API |每天100次请求 Directions API |每天2,500次请求 Places API |每天1,000个请求
如果他们单独加载,那么当单独的配额踢了吗?
注意:我还发现 this page 其中指出:
使用API密钥提交请求的应用程序允许1,000
每24小时的请求次数。
这引发了另一个问题,我真的很困惑这一切文档。底线是我需要访问上述5个粗体项目。是否就像使用 JavaScript Maps API v3 访问其他4个一样简单,所有请求都将落入25,000个请求配额?
任何谷歌地图大师在那里?
有两种方法可以访问这些API:
- 作为JavaScript API v3库/服务
- 如 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.
Geocoding API | 2,500 requests per day
Geolocation API | 100 requests per day
Directions API | 2,500 requests per day
Places API | 1,000 requests per day
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:
- As a JavaScript API v3 library/service
- 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屋!