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.
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.
double latitude = geoPoint.getLatitudeE6() / 1E6; double longitude = geoPoint.getLongitudeE6() / 1E6; location.setLatitude(latitude); location.setLongitude(longitude);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With