The accuracy of the distance between two long long ions

I calculate the distance between two long coordinates using -(CLLocation)distanceFomLocation:(CLLocation) and the Haversin formula. But this does not give the correct result.
I use the location basis to find out the length of the lat of two positions that are 1 meter apart, but the above formula gives the distance several times 40 m, sometimes 30 m and so on. I set the desired accuracy to ten meters. I am using an iPhone 4s device.

Just want to know that the accuracy of the method -(CLLocation)distanceFomLocation:(CLLocation) for calculating distances? I have to calculate distances up to 10 m.

+4
source share
1 answer

The formula is correct, for a distance of 1 m, the acoustics are less than 1/1000 millimeters. What is wrong is your lat / lon position, which you received from a GPS device that can deflect this 40 m.

For a distance of 10 m, the formula used either in haversine or in distanceFromLocation is absolutely accurate. It begins to become interesting when distances are several kilometers away.

So don’t worry. But the main problem is to get such high positions, and it depends on what you need for this.

You need to remotely measure the coordinates of ONE GPS device (which works) or between different GPS devices (30 meters can be set for two devices in the same position, but usually 3-6 meters GPS accuracy with a good view to open the sky .

Next, make sure you use the desired BestForNavigation or Best function.

+2
source

All Articles