【发布时间】:2011-08-04 17:46:17
【问题描述】:
我在 android 应用程序中使用 LocationManager 来获取用户当前坐标。它对我来说很好,但第二步我想向用户显示格式化的地址,而不是以 logn 和 lat 格式显示它。 你能帮帮我吗?
【问题讨论】:
标签: android-location
我在 android 应用程序中使用 LocationManager 来获取用户当前坐标。它对我来说很好,但第二步我想向用户显示格式化的地址,而不是以 logn 和 lat 格式显示它。 你能帮帮我吗?
【问题讨论】:
标签: android-location
试试这个:
Geocoder geocoder = new Geocoder(context);
List<Address> address = geocoder.getFromLocation(Latitude, Longitude, 1);
【讨论】:
Geocoder.isPresent() 检查设备是否具有正确的 API。