我知道这是一个非常noobish的问题 - 但什么是转换GeoPoint到Location在Android平台。
解决方案 双纬度= geoPoint.getLatitudeE6()/ 1E6;
双经度= geoPoint.getLongitudeE6()/ 1E6;
location.setLatitude(纬度);
location.setLongitude(经度);
I know this is a very noobish question -- but what is the best way to convert a GeoPoint
to a Location
on the Android platform.
double latitude = geoPoint.getLatitudeE6() / 1E6;
double longitude = geoPoint.getLongitudeE6() / 1E6;
location.setLatitude(latitude);
location.setLongitude(longitude);
上一篇:是getSupportFragmentManager()和getChildFragmentManager()有什么区别?有什么区别、getSupportFragmentManager、getChild