【问题标题】:Is the Google Direction API for android is free of cost?Android 版 Google Direction API 是免费的吗?
【发布时间】:2020-02-28 03:22:51
【问题描述】:

我正在开发一个 android 应用程序,我将在其中显示从一个位置到另一个位置的方向我已将其与 Google 地图集成。所以,现在我正在尝试使用 google 方向 API 并且已经为此生成了 API 密钥,但是当我通过在浏览器中执行 https 请求来使用它时,它会向我显示结果:“Request denied”

以下是我在结果中得到的响应。 是否有必要启用计费或我做错了? 因为我不会在我的应用程序中一次又一次地请求方向,所以我只会点击网络服务一次,然后在我的应用程序中使用该响应,其中我将显示从一个起点到目的地的 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"
}

【问题讨论】:

  • 已付费,根据出现的错误提示
  • 结算帐户是 Google Maps Platform 的必填项。您有每月 200 美元的免费套餐。因此,如果您的使用量低于 200 美元,您将无需付费。

标签: java android google-maps-android-api-2 directions


【解决方案1】:

某些Google API Services需要您启用Google Billing,这并不意味着您需要为这些服务付费;他们中的大多数都有免费配额,当你超过门槛时,你会被收费,多少钱?这得看情况。对于某些 API 或服务,您可以使用 Google Calculator,而对于其他一些 API 或服务,您需要查看产品页面。例如Google Speech API

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

对于Google Direction API 是:

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-09-11
    • 1970-01-01
    • 2021-07-22
    • 1970-01-01
    • 2023-04-02
    • 2012-11-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多