我还没有尝试使用Places API网络服务,而是我的所有请求都显示在API控制台信息中心上。我正在尝试使用Javascript api并加载场所库。
我正如我在示例中看到的那样使用此代码:
<script src='https://maps.googleapis.com/maps/api/js?libraries=places&key=<MYKEYHERE>'></script>
如果我禁用Places API网络服务,我的网页将停止工作。我做错了什么?
答案 0 :(得分:0)
来自Javascript API中对Places库的调用的配额现已包含在Places Web服务的配额中。
来自the blog post announcing the change:
- 我们现在将Google Maps JavaScript API客户端请求计入相关网络服务API的每日限额。*
醇>
[self.view addSubview:webView]; [webView loadHTMLString:htmlString baseURL: [[NSBundle mainBundle] bundleURL]]; [webView stringByEvaluatingJavaScriptFromString:javascriptCode];
例外可能适用于2016年6月22日之前超过新配额的实施。