Google地图api v3 + Google已停用此应用程序使用Maps API

k80*_*0sg 8 google-maps google-maps-api-3

刚刚间歇性地遇到了这个错误:

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.
Run Code Online (Sandbox Code Playgroud)

不知何故,当我刷新页面时,地图又回来了.我认为如果它是违规行为,它将永久撤销密钥,并且不再允许使用此密钥加载地图.此外,错误总是发生在页面加载.如果它已经成功加载,我还没有遇到错误.我简要地阅读了这些条款但却找不到任何可疑的东西.任何人都可以建议如何解决这个错误?我应该检查一些js错误或地图条款吗?谢谢.

这是地图脚本的样子:

<script src="http://maps.google.com/maps/api/js?v=3&sensor=false&libraries=places&key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" type="text/javascript"> </script>
Run Code Online (Sandbox Code Playgroud)

geo*_*zip 4

你可以尝试记录的地图 API 脚本URL :

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

建议使用钥匙但不强制使用且需要传感器。

(所以这应该有效):

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