开发者

Convert GeoPoint to Location

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜