用于Android的Google Direction API是否免费?

问题描述 投票:-1回答:1

我正在开发一个Android应用程序,其中将显示从一个位置到另一个位置的方向,并将其与Google Maps集成在一起。因此,现在我正在尝试使用谷歌方向API并已经为此生成了API密钥,但是当我通过在浏览器中执行https请求来显示它时,它向我显示了结果:“请求被拒绝”

下面是我得到结果的答案。是否需要启用结算功能,否则我做错了吗?因为我不会在我的应用程序中一次又一次地请求方向,所以我只会点击一次Web服务,并将在我的应用程序中使用该响应,在该应用程序中,我将显示从一个起点到目的地的2,3条路径

{
  "error_message": "You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project/_/billing/enable Learn more at https://developers.google.com/maps/gmp-get-started",
  "routes": [],
  "status": "REQUEST_DENIED"
}
java android api free direction
1个回答
0
投票
enter image description here

因此,您可以使用60分钟而不会出现任何问题,但需要启用Google Billing才能使其正常工作。

[Google Direction API为:

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.