【发布时间】:2015-06-09 14:15:48
【问题描述】:
谁能告诉我Android Geocoder和Android Google Geocoder API之间的确切区别
据我所知,Android Geocoder 是平台内置类,与 API 相比,提供的结果更少,可靠性也更低。
内置 Geocoder 类是否有任何硬性限制/配额?
【问题讨论】:
标签: android google-maps google-maps-api-3 google-geocoder
谁能告诉我Android Geocoder和Android Google Geocoder API之间的确切区别
据我所知,Android Geocoder 是平台内置类,与 API 相比,提供的结果更少,可靠性也更低。
内置 Geocoder 类是否有任何硬性限制/配额?
【问题讨论】:
标签: android google-maps google-maps-api-3 google-geocoder
Android Geocoder 内置在类中,没有配额限制。
Geocoding API 是一个 http 请求,有 2500 个 QPD 配额。地理编码似乎更可靠。
【讨论】:
Geocoder 只是“一个处理地理编码和反向地理编码的类”。 根据文档: “Geocoder 类需要一个不包含在核心 android 框架中的后端服务。如果平台中没有后端服务,Geocoder 查询方法将返回一个空列表。使用 isPresent() 方法确定是否存在 Geocoder 实现。 "
Google Geocoding API 是 API,平台中的后端服务。您可以在没有 Geocoder 类的情况下使用它。
参考:https://developer.android.com/reference/android/location/Geocoder
【讨论】: