本文介绍了地图方向配额限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好我已经写了一个谷歌脚本,为特定的起点和端点提供了距离。我已经在网上阅读了很多文章,但他们没有包括谷歌地图脚本的限制。



我想知道多少个起点和终点(多少个电话),我将能够使用正常的gmail和一个商业gmail id去掉。






编辑:



我使用 Maps.newDirectionFinder()。getDirections();

解决方案



使用限制



Directions API有以下限制:


  • 每24小时有2,500个指示要求。
    当交通方式为驾车,步行或骑自行车时,每个方向的搜索计为单个请求。

  • 搜索公交路线指示为4个请求。

  • 驾驶,步行或骑车路线指示的个人请求可能包含请求中最多8个中间路标。不能为转运请求指定航点。



客户有更高的限制:


  • 小时。

  • 每个请求中允许使用23个航点。航点并不适用于公共交通路线。 。由于某些Directions API网址可能涉及路径中的许多位置,因此在构建网址时请注意此限制。 路线API只能与在Google地图上显示结果一起使用;使用路线数据而不显示请求路线数据的地图是被禁止的。此外,计算方向会产生版权和警告,必须以某种方式向用户显示。有关允许使用的完整详情,请参阅。


    Hi i have written a google script that takes out the distance for the specific start point and endpoint. I have read a lot of articles online but they don't include the limits for google map script.

    I want to know for how many number of start points and end points (how many calls) will i be able to take out using a normal gmail and a business gmail id.


    EDIT:

    I'm using Maps.newDirectionFinder().getDirections();

    解决方案

    https://developers.google.com/maps/documentation/directions/#Limits

    Usage Limits

    The Directions API has the following limits in place:

    • 2,500 directions requests per 24 hour period.When the mode of transportation is driving, walking, or cycling, each directions search counts as a single request.
    • Searching for transit directions counts as 4 requests.
    • Individual requests for driving, walking, or cycling directions may contain up to 8 intermediate waypoints in the request. Waypoints can not be specified for transit requests.

    Google Maps API for Business customers have higher limits:

    • 100,000 directions requests per 24 hour period.
    • 23 waypoints allowed in each request. Waypoints are not available for transit directions.
    • Directions API URLs are restricted to 2048 characters, after URL Encoding. As some Directions API URLs may involve many locations along a path, be aware of this limit when constructing your URLs.

    The Directions API may only be used in conjunction with displaying results on a Google map; using Directions data without displaying a map for which directions data was requested is prohibited. Additionally, calculation of directions generates copyrights and warnings which must be displayed to the user in some fashion. For complete details on allowed usage, consult the Maps API Terms of Service License Restrictions.

    这篇关于地图方向配额限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 01:01