开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜