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.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
double latitude = geoPoint.getLatitudeE6() / 1E6;
double longitude = geoPoint.getLongitudeE6() / 1E6;
location.setLatitude(latitude);
location.setLongitude(longitude);