弃用V2 [英] Deprecation of V2

查看:141
本文介绍了弃用V2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序调用v2 api而不使用密钥:

 < script type =text / javascriptsrc = http://maps.google.com/maps?file=api&amp;v=2&amp;key= >< /脚本> 

在过去的几天里,这样做已停止。控制台只显示一个错误:

  Google Maps Javascript API v2不再支持控制... 

然而,无论我尝试调用v3 API,我都会收到一个错误消息:


Google禁止在此应用中使用Maps API。提供的密钥不是有效的Google API密钥,也未授权Google Maps JavaScript API v3在这个网站上


我已经检查并重新连接了一张有效的银行卡到账户(尽管未结余额为0.00美元)这笔付款似乎尚未注册。



任何领导人下一步该去哪里?

解决方案加载Google地图API页面声明使用此代码并将新的API密钥放入API_KEY的代码中,您可能需要将传感器设置为FALSE,也可能需要放置新的API键入您的应用程序设置pa ge。

< script type =text / javascript
src =https://maps.googleapis.com/maps/api/js?key=API_KEY&sensor=FALSE>


< ; / script>


I have an application calling the v2 api without key using:

<script type="text/javascript" src="http://maps.google.com/maps?file=api&amp;v=2&amp;key="></script>

This has stopped working over the past couple of days. Console is showing only one error:

Control is no longer supported in the Google Maps Javascript API v2...

However, whichever way I try and call the v3 API, I get an error :

"Google has disabled use of the Maps API for this application. The provided key is not a valid Google API Key, or it is not authorized for the Google Maps Javascript API v3 on this site"

I have checked, and re-connected a valid bank card to the account (although the outstanding balance was $0.00) This payment appears not to have been registered.

Any leaders on where to go next?

解决方案

Loading the Google Maps API page states to use this code with a new API key placed into the code at API_KEY and you will probably need to set your sensor to FALSE, also you may need to place the new API key into your application settings page.

<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=API_KEY&sensor=FALSE">
</script>

这篇关于弃用V2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆