Convert Degrees Minutes Seconds coordinates to decimal in Android
I have a database with coordinates in Degrees Minutes Seconds form开发者_运维百科at, is there any way to change them to decimal coordinates using Android built in function or is there any simpler way to show such coordinates in a mapview ?
minutes and seconds are just base 60, decimals would be
theDegees = degrees+ minutes /60 + seconds/(60*60)
mind the integer ops
精彩评论