【发布时间】:2014-06-19 20:00:16
【问题描述】:
我的应用会读取并提供我手机的 gps 坐标。
然后我想做一个反向地理编码来给我物理地址
我使用这段代码来做到这一点
double latitude = gps.getLatitude();
double longitude = gps.getLongitude();
Geocoder geocoder = new Geocoder(this, Locale.getDefault());
try {
List<Address> addresses = geocoder.getFromLocation(latitude, longitude, 1);
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
我现在如何为地址敬酒 我通过某种方式在屏幕上显示坐标的地址
任何帮助
标记
【问题讨论】: