[Math] How to get/approximate distance between 2 close points (given in latitude/longitude)

algorithmstrigonometry

I have 2 points with their latitude/longitude coordinates and I know that they are in a X miles radius circle (let's say 10 miles radius) somewhere on earth where it's populated (I mean not near the north pole 😉 ). I would like to know if these points are very very close of each other or not. When I say very very close, I mean a few meters (let's say 30 meters).

I don't want to use the heavy formula that returns the exact distance between 2 points anywhere on earth. I'm looking for a simplified formula that would simply answer yes or no to the previous question.

Best Answer

The north/south distance is 1 nautical mile per minute of latitude. The east/west distance is $\cos \phi$ nautical mile per minute of longitude. So you have the total distance in nautical miles is $\sqrt{\Delta \phi^2+\cos^2 \phi \Delta \lambda}$ where the distance is in nautical miles and the angles are in minutes. Alternately, you can express it as $R\sqrt{\Delta \phi^2+\cos^2 \phi \Delta \lambda}, R$ the radius of the earth in your favorite units and angles in radians.

Related Question