【问题标题】:Error in key generation for draw Poly line in google map在谷歌地图中绘制折线的密钥生成错误
【发布时间】:2019-02-25 11:00:30
【问题描述】:
 {
      "error_message": "Keyless access to Google Maps Platform is deprecated. Please use an API key with all your API calls to avoid service interruption. For further details please refer to http://g.co/dev/maps-no-account",
      "routes": [],
      "status": "OVER_QUERY_LIMIT"
 }

由于此错误消息和 OVER_QUERY_LIMIT 状态,无法在谷歌地图中绘制折线。

【问题讨论】:

  • 检查this && this。因为您需要在 URL 中附加 API 密钥。
  • 始终粘贴您的请求参数和所需的代码详细信息

标签: android google-maps polyline google-polyline


【解决方案1】:

请按照步骤以避免出错

启用以下 API

1 个适用于 Android 的谷歌地图 SDK

2个方向接口

3 地理编码 API

4 地理位置接口

5 地点 API

6 Places Sdk For Android

请创建一个计费帐户它不会收取任何费用,只需 2 INR 即可检查您是否不是机器人

并且请将您的 API 密钥传递给 URL (注意不要限制您的 API)

String url = "https://maps.googleapis.com/maps/api/directions/"+output+"?"+parameters + "&key=" + MY_API_KEY

完成此步骤后,它将起作用..

【讨论】:

  • 没有计费帐户是否可能?
  • No 在 10 次请求后创建结算帐户后会再次引发 OVER_LIMIT 错误 google 为您提供一年的免费信用
  • 我需要在哪里使用这个网址?
  • @DharaPatel 请接受它的答案会帮助其他人
猜你喜欢
  • 1970-01-01
  • 2018-03-06
  • 2016-05-14
  • 1970-01-01
  • 1970-01-01
  • 2013-07-02
  • 2023-04-06
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多