【问题标题】:Is API key needed when making a request for Google Directions and Geocode?请求 Google 路线和地理编码时是否需要 API 密钥?
【发布时间】:2014-03-21 15:24:10
【问题描述】:

我正在为 Android 和 iOS 开发一个使用 Google Maps API、Google Directions API 和 Google Geocode API 的应用程序。没有 API 密钥,地图就无法运行,所以我从 Google 控制台获得了一个。方向和地理编码也有 API 密钥,但我没有要求它们。在 Geocode 和 Directions 的文档中写到 API 密钥应该添加到 URL 请求中,当我向他们请求时我没有添加它们,它仍然可以正常工作。 我的问题是:我需要为他们请求 API 密钥吗?该应用程序将在未来商业化。

【问题讨论】:

    标签: android api google-maps


    【解决方案1】:

    https://developers.google.com/maps/documentation/directions/#api_key

    All Directions API 应用程序应使用 API 密钥。

    【讨论】:

    • developers.google.com/maps/faq#keysystem - 此处 Google 表示仅推荐密钥。
    • 'Google Maps JavaScript API v3 和 Maps Image API 以前不需要 API 控制台密钥。旧应用程序仍支持此功能,以确保向后兼容性,但不再推荐用于新应用程序。 - 当我们谈论 Android 时,我认为这不是真的,因为当您使用免费版本时,他们希望将最大请求限制为 2500/天。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-07-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-05-10
    相关资源
    最近更新 更多