Google Maps Places API 的配额是如何计算的?
How is the quota of Google Maps Places API calculated?
我有一个用于查找详细地址和坐标的名称列表,就像用户在 Google 地图应用程序上搜索的内容一样,但我尝试批量完成任务。
我在 Python 中用 "Requests" 包完成了。
我使用了 Google Maps Places API 和 "textsearch" 模式。发送了100个请求(每个包含一串地方名)后,在API控制台发现超过了免费额度(1000个请求/24h),而"success"的计数是100 .
为什么 Google 记录了 1,000 个请求,而实际上我发送了 100 个请求?
如 the documentation 中所述,文本搜索受 10 倍乘数的影响:
Text Search Requests
-- 剪断 --
The Google Places search services share the same usage limits. However, the Text Search service is subject to a 10-times multiplier. That is, each Text Search request that you make will count as 10 requests against your quota. If you've purchased the Google Places API as part of your Google Maps API for Work contract, the multiplier may be different. Please refer to the Google Maps API for Work documentation for details.
我有一个用于查找详细地址和坐标的名称列表,就像用户在 Google 地图应用程序上搜索的内容一样,但我尝试批量完成任务。
我在 Python 中用 "Requests" 包完成了。
我使用了 Google Maps Places API 和 "textsearch" 模式。发送了100个请求(每个包含一串地方名)后,在API控制台发现超过了免费额度(1000个请求/24h),而"success"的计数是100 .
为什么 Google 记录了 1,000 个请求,而实际上我发送了 100 个请求?
如 the documentation 中所述,文本搜索受 10 倍乘数的影响:
Text Search Requests
-- 剪断 --
The Google Places search services share the same usage limits. However, the Text Search service is subject to a 10-times multiplier. That is, each Text Search request that you make will count as 10 requests against your quota. If you've purchased the Google Places API as part of your Google Maps API for Work contract, the multiplier may be different. Please refer to the Google Maps API for Work documentation for details.