views:

111

answers:

1

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
That sucks that there is no easier way to do it.
hwrdprkns
Moreover -- 1E-6 also works for converting an is a few less chars.
hwrdprkns