Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert GeoPoint to Location

Tags:

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.

like image 288
hwrdprkns Avatar asked Aug 12 '10 22:08

hwrdprkns


People also ask

How do you convert Northing Easting coordinates to longitude and latitude?

Subtract the easting and northing by their respective offset values. (The values will be in meters.) Find the longitude of the given point by finding the destination point given the base point, the absolute value of the easting, and the bearing of 90 degrees if the easting is positive, or 270 degrees if it's negative.


1 Answers

double latitude = geoPoint.getLatitudeE6() / 1E6; double longitude = geoPoint.getLongitudeE6() / 1E6;  location.setLatitude(latitude); location.setLongitude(longitude); 
like image 149
Megha Joshi - GoogleTV DevRel Avatar answered Nov 11 '22 08:11

Megha Joshi - GoogleTV DevRel