Android 地理编码器配额限制 [英] Android Geocoder quota limits

查看:22
本文介绍了Android 地理编码器配额限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以就 Google 地图地理编码 api 的配额限制提出建议吗?我在 android 上使用地理编码.谷歌地图 Api 站点声明限制为每天 2,500.这是 API 密钥的总数吗?或每个 IP 地址?我找到了这篇文章:http://code.google.com/apis/maps/articles/geocodestrat.html#配额限制

Could someone advise on the quota limits to Google maps geocoding api? I'm using geocoding on android. The Google maps Api site states the limit is 2,500 per day. Is this total for the API key? or per IP address? I have found this article: http://code.google.com/apis/maps/articles/geocodestrat.html#quota-limits

其中指出配额限制与 IP 地址相关,但这是指网站.任何人都可以回答这个问题吗?显然,这是一个巨大的差异,对于大多数应用程序来说,每台设备每天 2,500 次地理编码查找就足够了.

which states that the quota limit is tied to the ip address, however this is referring to websites. Can anyone answer this? Obviously this is a huge difference and 2,500 geocode lookups per day per device would be enough for most applications.

推荐答案

据我所知,它是每天每个 IP 地址.这正是提出请求的机器.因此,如果其他人正在使用您的应用程序,它会将其限制在他们的机器上.

From what I understand it's per single IP address per day. This is the exact machine making the request. So if someone else was using your application it would limit it to their machine.

您的 API 密钥可在多个设备上使用.同样的原则适用于 Google 的所有 API.我使用翻译 API,如果我被限制为每个 API 密钥,我会被搞砸并且会最大化.

Your API key can be used from multiple devices. This same principle applies to all of Google's APIs. I use the translate API, and if I was limited to per API key I'd be screwed and would max out.

当然,如果您向 Google 支付使用其 API 的费用(在 API 控制台中计费),则这不适用.我为 Google Translate API 付出了很多

Of course this doesn't apply if you pay Google for use of their API (Billing in the API console). I pay a lot for Google Translate API

这篇关于Android 地理编码器配额限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆