将地理坐标转换为在android中显示

时间:2011-12-22 11:41:51

标签: android geolocation

7°57'23.07" N

80°45'34.47" E

如何将其转换为以微度为单位显示?

我有一个mapview,想要显示一个点。

1 个答案:

答案 0 :(得分:1)

首先转换为十进制值,然后转换为我发现的地理位置,我发布此将度数转换为十进制

To convert the number of minutes to a decimal value, use the following formula:
Decimal value = Minutes/60
As an example, a longitude of 122 degrees 45 minutes North is equal to 122.75 degrees North.

http://support.microsoft.com/kb/244951

用于在线测试http://transition.fcc.gov/mb/audio/bickel/DDDMMSS-decimal.html