开发者

Convert GeoPoint to Location

开发者 https://www.devze.com 2023-01-11 03:17 出处:网络
I know this is a very noobish question -- but what is the best way to convert a GeoPoint to a Loca开发者_如何学Pythontion on the Android platform.double latitude = geoPoint.getLatitudeE6() / 1E6;

I know this is a very noobish question -- but what is the best way to convert a GeoPoint to a Loca开发者_如何学Pythontion on the Android platform.


double latitude = geoPoint.getLatitudeE6() / 1E6;
double longitude = geoPoint.getLongitudeE6() / 1E6;

location.setLatitude(latitude);
location.setLongitude(longitude);
0

精彩评论

暂无评论...
验证码 换一张
取 消