Geocoder class 给出了错误的坐标,并且不会解析坐标来获取街道地址。赛马林

Geocoder class gives wrong coordinates and won't parse coordinates to get street address. Xamarin

我输入了来自 http://developer.xamarin.com/recipes/android/os_device_resources/gps/get_current_device_location/ 的代码,并且当我 运行 应用程序时,我一直在获取旧金山 Xamarin 办公室的坐标作为我的当前位置。

我已经在我的 Nexus 4 (KitKat) API 19 模拟器上安装了 Google 地图 apk,并且 Google 地图将我的当前位置显示为旧金山。

应用程序不会解析坐标来获取街道地址。

我尝试通过 Xamarin 添加 Google Play 服务,但是在调试时它冻结了,我不得不将其终止。

如果您使用的是 Xamarin Android 播放器,则模拟 GPS 坐标。

您需要更新您想要的位置。为此,请单击设置,然后单击 GPS 选项卡。

您的应用程序将看到新的坐标,并且应该 return 正确的地址。