2

我在 android 应用程序中使用google place text search api

https://maps.googleapis.com/maps/api/place/textsearch/json?query=haldi&location=28.62470,77.3806&radius=100&sensor=false&key=myBrowser_key

作为回应,我根据查询收到了地点的 JSON。

根据本文档 https://developers.google.com/maps/documentation/geocoding/#Limits

我们每天可以发出 2,500 个请求。

但是当我只使用一个 myBrowser_key配置我的应用程序时,如果我的应用程序被 1000 个用户使用,那么在每个用户进行 2 到 3 次搜索之后......我的地点搜索将不起作用。它将显示"status"="OVER_QUERY_LIMIT"

那么我该如何处理这个问题呢?我是否以错误的方式使用此服务?如何在我的应用程序中使用 google place 服务?有什么办法可以提高限额吗?

任何建议..请帮助

4

2 回答 2

2

Refer this link Google Places API Usage Limitations

  • By default, each app is allowed 1 000 requests per 24-hour period.
  • You can increase the limit to 150 000 requests per 24 hour period by enabling billing in the APIs console, and thus verifying your identity. A credit card is required for verification. We ask for your credit card purely to validate your identity. Your card will not be charged for use of the Google Places API for Android.
  • If you expect to need more than 150 000 requests per 24 hour period, you should request an uplift as soon as possible. (This involves checking your app for compliance with our terms of service, and then completing a quota request form.)
  • If the number of requests exceeds 500 000 per 24 hour period on a regular basis, we consider your app a significant user of the Google Places API for Android. We will be in touch to chat about planning capacity. You don't need to take any action until we contact you.
于 2015-04-07T06:09:20.673 回答
0

如果您可以选择,您应该尝试在一定程度上缓存响应位置,以便您可以在服务器的特定时间段内使用相同的参数来处理您的新请求。

如果某些用户正在从特定区域寻找相同的查询,这将导致一定程度的减少。

于 2015-04-07T06:27:48.500 回答