调用javascript api但在仪表板中显示为Places API Web服务

时间:2016-08-16 15:44:49

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

我还没有尝试使用Places API网络服务,而是我的所有请求都显示在API控制台信息中心上。我正在尝试使用Javascript api并加载场所库。

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

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

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

1 个答案:

答案 0 :(得分:0)

来自Javascript API中对Places库的调用的配额现已包含在Places Web服务的配额中。

来自the blog post announcing the change

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

    [self.view addSubview:webView]; [webView loadHTMLString:htmlString baseURL: [[NSBundle mainBundle] bundleURL]]; [webView stringByEvaluatingJavaScriptFromString:javascriptCode]; 例外可能适用于2016年6月22日之前超过新配额的实施。