【问题标题】:Android google places API exceeded daily quotaAndroid google places API 超出每日配额
【发布时间】:2019-01-19 17:25:30
【问题描述】:

我正在创建 android 应用程序,我必须实现地图和地点,因此,我创建了新的谷歌地点 API,当我使用 volley 发送请求以从纬度和经度获取 placeId 时,我收到错误提示

{"error_message":"You have exceeded your daily request quota for this API.","html_attributions":[],"results":[],"status":"OVER_QUERY_LIMIT"}

但它在邮递员上运行良好,我该如何解决这个问题?

附:我是初学者,所以如果我的过程中有任何错误,请纠正我。 谢谢。

【问题讨论】:

    标签: android google-maps google-maps-api-3 android-volley google-places-api


    【解决方案1】:

    我认为 Google 的服务条款限制了从客户端应用程序(即您的 Android 应用程序)使用 Place API。我也在其他问题的评论中看到了这一点。 (正如 Troy Perales 也提到的)

    有关实现 Google API 的教程或示例,请点击 herehere。这些是实现 Google Places API 的 Codelabs 示例。enter code here 这是Places Docs

    希望对你有帮助。

    【讨论】:

    • 感谢您的帮助。
    【解决方案2】:

    在为 Android 开发时,Google 建议使用 Places SDK for Android (https://developers.google.com/places/android-sdk/intro) 而不是 Places API (https://developers.google.com/places/web-service/intro),因为它是免费的并且有很大的使用限制。见https://developers.google.com/places/android-sdk/usage

    【讨论】:

    猜你喜欢
    • 2023-03-24
    • 2016-11-08
    • 1970-01-01
    • 1970-01-01
    • 2019-02-23
    • 1970-01-01
    • 1970-01-01
    • 2014-10-16
    • 2019-06-10
    相关资源
    最近更新 更多