Skip to content Skip to sidebar Skip to footer

Get Twelve Digits After Decimal For Latitude And Longitude

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 the gps tracke

Solution 1:

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.

Solution 2:

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.

Post a Comment for "Get Twelve Digits After Decimal For Latitude And Longitude"