gpt4 book ai didi

Android 地理编码器配额限制

转载 作者:IT老高 更新时间:2023-10-28 22:05:48 26 4
gpt4 key购买 nike

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

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

最佳答案

Android Geocode API 没有硬性限制

我联系了开发者支持

问:

With the new app we are writing, we have a map of 10 houses and we have to look up the Lat Long from the Postcode for each.

We use:

http://developer.android.com/reference/android/location/Geocoder.html#getFromLocationName(java.lang.String, int)

However, the customer is now asking about limits of the API. I've had a look around online but I can't find any concrete evidence.

I've heard it would be 2500 requests per IP address per 24 hours.

Some people are getting the Javascript Geocoder mixed up with the Android Geocoder, so this question is specifically Android.

I made a loop that hits the getFromLocationName more than 2500 times and it would return me data anyway. Caching maybe. I sometimes get an IOException, intermittently. I've assumed this is something to do with the backing LocationProviders and I would also get the IOException if I ever hit this mythical limit?

Could you bring some clarity to my ramblings or know someone who could?

Regards

Paul

得到了这个回复:

Paul,

This API is designed for reasonable use by client applications. It is actively monitored for abuse (e.g. requests per second), but you should not have an any issues with the use case you have described.

I am not sure how your application is structured, but it might be more efficient to do the geocoding once on the server-side, rather than on every device individually.

Thanks, Jan-Felix

仅供引用:(一旦完成,我们还将这些查找保存在本地设备上的数据库中,这样他们就不需要再做一次了)

因此,Android GeoCode API 的使用没有硬性限制,更多的是公平使用政策每台设备(客户端)

关于Android 地理编码器配额限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8218764/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com