Google Maps API - 在域上禁用

Mic*_*ael 12 google-maps google-maps-api-3

页面加载时,我收到消息为javascript警告: Google has disabled use of the Maps API for this application. See the Terms of Service for more information: http://www.google.com/intl/en-US_US/help/terms_maps.html.

一切正常,直到今天.Google网站管理员工具没有告诉我任何事情.

我的问题是,我可以找到更多的信息,为什么这个页面被禁止/阻止.(有很多可能的原因)

怎么做才能解锁?谁或何地发送请求?

Ste*_*eng 5

我的网络应用程序发生了同样的错误,我们通过更新指向Google Maps API文件的链接来修复它.

以前我们使用位于地图API文件的下载版本http://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&sensor=SET_TO_TRUE_OR_FALSE.

当我们改为使用直接链接时,这个特殊的错误就消失了.

编辑:即使您直接链接到Google的js文件,也请确保您的应用程序未使用较旧的本地缓存版本.

不工作版本:

<script type="text/javascript" src="local_google_maps_api.js">
Run Code Online (Sandbox Code Playgroud)

工作版本:

<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&sensor=SET_TO_TRUE_OR_FALSE">
Run Code Online (Sandbox Code Playgroud)

Google可能会使用较旧的地址版本启动Google API v3调用无效.Javascript代码文件主要在API IP地址调用中有所不同