【问题标题】:Maps.newDirectionFinder() Exceeded Daily Request QuotaMaps.newDirectionFinder() 超出每日请求配额
【发布时间】:2016-10-25 00:15:25
【问题描述】:

我正在使用嵌入到 Google 电子表格中的 GAS 作为里程记录。在用户输入他们的出发地和目的地后,我的脚本会自动计算距离并将其输入到电子表格中。它工作得很好,除了它告诉我的一半时间:

{error_message=您已超出此 API 的每日请求配额。我们建议在 Google Developers Console 中注册一个密钥:https://console.developers.google.com/apis/credentials?project=_, routes=[], status=OVER_QUERY_LIMIT}

我绝对远不及每日请求配额。我的代码的相关部分如下:

var directions = Maps.newDirectionFinder()
    .setOrigin(orig)
    .setDestination(dest)
    .getDirections();

它在 .getDirection() 处引发错误。我将不胜感激对这个问题的任何见解。

【问题讨论】:

  • 您应该按照建议向请求添加密钥(现在是必需的)。
  • 做到了。谢谢!

标签: google-maps google-maps-api-3 google-apps-script google-sheets google-spreadsheet-api


【解决方案1】:

按照建议向请求添加密钥(现在是必需的)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-02-23
    • 2019-06-12
    • 1970-01-01
    • 1970-01-01
    • 2016-11-08
    • 2019-01-19
    • 2019-06-10
    • 2022-08-09
    相关资源
    最近更新 更多