Google Maps显示“仅供开发用途". [英] Google Maps shows "For development purposes only"

查看:114
本文介绍了Google Maps显示“仅供开发用途".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在网页中显示Google Maps时,会显示消息仅供开发使用":

Google Maps show the message "For development purposes only" when I try to show it in my webpage:

我如何使此消息消失?

我的代码是这样的:

<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
<script type="text/javascript">
  function initialize() {  
    var myLatlng = new google.maps.LatLng(50.5792659,8.6744471);
    var centerMap = new google.maps.LatLng(50.5792659,8.6744471);
    var div = document.getElementById('map');
  }
</script>

然后我有

<p>
  <a
    href="https://www.google.com/maps/dir//50.5792659,8.6744471/@50.579266,8.674447,16z"
    target="_blank"
  >Route berechnen</a>
</p>

我看不到此消息的来源.

I don't see where this message originates from.

推荐答案

Google地图不再免费.您必须关联一张信用卡,以便在您的网站上提出的请求超过他们每月免费提供给您的$ 200信用额时,您可以向其收取费用.这就是为什么您得到带水印的地图的原因.

Google Maps is no longer free. You have to associate a credit card so that you can get billed if your site has requests that exceed the $200 credit they give you monthly for free. That is why you get the watermarked maps.

有关更多信息,请参见: https://cloud.google.com/maps-platform /pricing/

For more information, see: https://cloud.google.com/maps-platform/pricing/

更新: 新计费系统的一个常见问题是,您现在必须分别激活每个API.它们都有不同的定价(有些甚至是免费的),因此Google提出了让您为自己的域分别启用它们的观点. 我从不沉迷于Google Maps,但我感到现在的API比以前更多了.

Update: A common problem with the new billing system is that you now have to activate each API separately. They all have different pricing (some are even free), so Google makes a point of having you enable them individually for your domain. I was never a heavy user of Google Maps, but I get the feeling that there are many more APIs now than there used to be.

因此,如果在启用计费后仍然收到受限使用消息,请找出您要提供的功能所需的API,然后检查其是否已启用. 烦人的API设置很难找到.

So if you're still getting a restricted usage message after you've enabled billing, find out what API you need exactly for the features you want to offer, and check if it's enabled. The API settings are annoyingly hard to find.

  1. 转到此链接: https://console.developers.google.com/apis/dashboard .
  2. 然后在下拉菜单中选择项目.
  3. 转到左侧窗格上的库.
  4. 浏览可用的API并启用所需的API.
  1. Go to this link: https://console.developers.google.com/apis/dashboard.
  2. Then you select your project in the dropdown.
  3. Go to library on the left pane.
  4. Browse the available APIs and enable the one you need.

这篇关于Google Maps显示“仅供开发用途".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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