谷歌地图显示“仅用于开发目的" [英] Google Maps shows "For development purposes only"

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

问题描述

当我尝试在我的网页中显示消息时,Google 地图会显示仅用于开发目的"消息:

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

我怎样才能让这条消息消失?

How could I make this message go away?

我的代码是这样的:

<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/定价/

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

更新:新计费系统的一个常见问题是您现在必须单独激活每个 API.它们都有不同的定价(有些甚至是免费的),因此 Google 强调让您为您的域单独启用它们.我从来都不是谷歌地图的重度用户,但我觉得现在的 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.

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

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