Get twelve digits after decimal for latitude and longitude

前端 未结 2 696
离开以前
离开以前 2021-01-22 13:55

I have an application in which I have to get user\'s current location from latitude and longitude. For both the values, I have to get 12 digits after decimal.

This is th

相关标签:
2条回答
  • 2021-01-22 14:20

    According to US Government

    The actual accuracy users attain depends on factors outside the government's control, including atmospheric effects and receiver quality. Real-world data collected by the FAA show that some high-quality GPS SPS receivers currently provide better than 3 meter horizontal GPS.gov

    This accuracy relates to 5 decimal places

    0.0001 = 11.1 m

    0.00001 = 1.11 m

    So an accuracy of 4 places is reasonable for an android device.

    0 讨论(0)
  • 2021-01-22 14:38

    You do not have to get 12 digits after comma when measuring in decimal degrees, which is the common representation. It is not being done by any one.

    7 digits is in the millimeter range.

    12 digits is a ten thousandth of a millimeter.

    Stay with 7 digits, which can be represented as integer too.

    0 讨论(0)
提交回复
热议问题