地理coder.getFromLocationName()抛出"服务不可用"除了在Android 4与谷歌地图V2 [英] Geocoder.getFromLocationName() throws "Service not available" exception on Android 4 with Google Maps V2

查看:162
本文介绍了地理coder.getFromLocationName()抛出"服务不可用"除了在Android 4与谷歌地图V2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

方法地理coder.getFromLocationName()抛出异常服务不可用在Android 4.1,即使 GooglePlayServicesUtil.isGooglePlayServicesAvailable()返回成功地理coder.is present()返回
是否有地理编码的新的谷歌地图V2 API中的任何官方的例子吗?

The method Geocoder.getFromLocationName() throws the exception Service not available on Android 4.1, even if GooglePlayServicesUtil.isGooglePlayServicesAvailable() returns SUCCESS and Geocoder.isPresent() returns true.
Is there any official example for geocoding in the new Google Maps v2 API?

推荐答案

地理codeR 是不相关的谷歌地图Android的API V2。

Geocoder is not related to Google Maps Android API v2.

您可能需要使用谷歌地理编码API ,而不是直接<$ C $的C>地理codeR ,它给你有限的数据量,并可能会影响设备或Android版本的具体问题。

You may want to use Google Geocoding API directly instead of Geocoder, which gives you limited amount of data and might be affected by device or Android version specific problems.

这篇关于地理coder.getFromLocationName()抛出&QUOT;服务不可用&QUOT;除了在Android 4与谷歌地图V2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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