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.
+3
A:
float latitude = geoPoint.getLatitudeE6()/1000000;
float longitude = geoPoint.getLongitudeE6()/1000000;
location.setLatitude(latitude);
location.setLongitude(longitude);
Megha Joshi
2010-08-12 23:26:10
That sucks that there is no easier way to do it.
hwrdprkns
2010-08-17 00:22:55
Moreover -- 1E-6 also works for converting an is a few less chars.
hwrdprkns
2010-08-22 01:20:59