有人可以帮我吗?在Android上使用geocoder是免费的吗?目前我只在使用Google地图。我看到它说每天仅限2500个请求。这仅适用于Web还是与移动设备完全不同的东西?
我正在使用以下代码通过纬度和经度获取邮政编码。
final Geocoder geocoder = new Geocoder(getActivity());
try {
List<Address> addresses = geocoder.getFromLocation(mLocationClient.getLatitudeCoordinate(), mLocationClient.getLongitudeCordinate(),5);
for (Address address: addresses){
if(address.getLocality()!=null && address.getPostalCode()!=null){
Log.v("Zip code", " " + address.getPostalCode());
}
}
} catch (IOException e) {
e.printStackTrace();
}
https://developers.google.com/maps/pricing-and-plans/#details
只是想确认一下。我对此非常困惑,希望能得到一些澄清 :) 谢谢