Converting Latitude/Longitude values(DMS+Compass Direction format) to corresponding Decimal Point values in Android

前端 未结 3 1638
暗喜
暗喜 2020-12-30 17:16

I am working on an Java android project and have the following issue. I Searched so much but still I have the problem of converting the Latitude/Longitude values that are in

3条回答
  •  醉梦人生
    2020-12-30 17:39

    D°M'S''

    1. Divide S by 60 and get X
    2. Find Y by adding X to M
    3. Divide Y by 60 to get F
    4. Answer = D + F

    SUMMARY

    TO CONVERT FROM DMS TO DEGREE

    Degrees = D + ((S/60)+M)/60

    Where D and M and S are the values that compose the DMS format : D°M'S''

提交回复
热议问题