ios - 您已超出此 API 的每日请求配额。 Google Places API iOS swift

标签 ios swift google-maps google-places-api

我正在尝试在一个非常简单的应用程序中使用 Google Places API。我只想定位当前位置附近的所有购物中心。我使用了这个网络服务:

https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=12.9412390245245,77.6171295438685&radius=1000&sensor=true&types=shopping_mall&key=MY_SERVER_KEY

它工作正常,但现在我收到以下错误消息:

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

我怎样才能避免这种情况?此外,在创建服务器 key 时,我没有提供任何 IP 地址,因为我没有任何服务器。我不想为这项简单的服务支付任何费用。无论如何我们可以避免它或任何其他免费替代方案吗?

最佳答案

按照以下链接 https://developers.google.com/maps/documentation/geocoding/usage-and-billing

此 API 每天只有一个请求配额。否则必须计费。

关于ios - 您已超出此 API 的每日请求配额。 Google Places API iOS swift ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38216519/

相关文章:

ios - NSNotification 被调用了两次

ios - 快速使函数中的计时器无效

xcode - 在 NSUserDefaults 中存储字典导致 EXC_BAD_ACCESS

javascript - 如果我知道纬度和经度,谷歌地图如何添加标记

iphone - 检查 subview 中的点是否在父 View 中

ios - 有没有办法将应用程序内的所有 UIButton 水龙头设为 "capture"?

iphone - 我是否正确地展示了我的 viewController?

ios - 当网络状态从蜂窝网络变为 wifi 时如何重新连接 VPN?

javascript - 使用 javascript 获取我当前的地址

javascript - 缺少 Google map RouteBoxer API