Android google Places API超出了每日配额

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

我正在创建Android应用程序,我必须实现地图和地方所以,我已经创建了新的谷歌地方API,当我使用截击发送请求从纬度和经度获取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
2个回答
2
投票

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

有关实施Google API的教程或示例,请单击herehere。这些是关于实施Google Places API的Codelabs示例.enter code here这里是Places Docs

我希望这可以帮助你。


1
投票

在针对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

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