I have a latitude and longitude values as a double value(37.33168900, -122.03073100).
I want to convert it to the degree value like (37 19' 54 ,48 11' 52 ).
Any Idea? Thanx in advance.
This will give you Strings in degrees, minutes and seconds of arc:
String strLongitude = location.convert(location.getLongitude(), location.FORMAT_SECONDS);
String strLatitude = location.convert(location.getLatitude(), location.FORMAT_SECONDS);
.
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