【问题标题】:Calling javascript api yet showing in dashboard as Places API Web Service调用 javascript api 但在仪表板中显示为 Places API Web 服务
【发布时间】:2016-12-23 01:59:29
【问题描述】:

我并没有尝试使用 Places API Web 服务,但这就是我的所有请求都显示在 API 控制台仪表板上的方式。我正在尝试使用 Javascript api 并加载地点库。

正如我在示例中看到的那样,我正在使用此代码:

<script src='https://maps.googleapis.com/maps/api/js?libraries=places&key=<MYKEYHERE>'></script>

如果我禁用 Places API Web 服务,我的页面将停止工作。我做错了什么?

【问题讨论】:

  • 你在参数中使用了地方库试试这个&lt;script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&amp;callback=initMap" async defer&gt;&lt;/script&gt;

标签: javascript api google-maps-api-3


【解决方案1】:

在 Javascript API 中调用 Places Library 的配额现在包含在 Places Web Service 的配额中。

来自the blog post announcing the change

  1. 我们现在将 Google Maps JavaScript API 客户端请求计入相关网络服务 API 的每日限制。*

* 例外情况可能适用于在 2016 年 6 月 22 日之前超过新配额的实施。

【讨论】:

    猜你喜欢
    • 2017-02-08
    • 1970-01-01
    • 1970-01-01
    • 2015-11-08
    • 1970-01-01
    • 2022-10-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多