{"id":63,"date":"2021-03-25T12:09:32","date_gmt":"2021-03-25T19:09:32","guid":{"rendered":"https:\/\/www.lunarip.com\/?p=63"},"modified":"2021-03-27T16:16:53","modified_gmt":"2021-03-27T23:16:53","slug":"the-distance-between-2-gps-points-calculation","status":"publish","type":"post","link":"https:\/\/www.lunarip.com\/index.php\/the-distance-between-2-gps-points-calculation\/","title":{"rendered":"Calculating the distance between 2 GPS points"},"content":{"rendered":"\n
With the proliferation of GPS tagging in data sets, a useful calculation to that allows to derive the distance between two points is possible using the Haversine formula. The law of havershines is a more general formula within spherical trigonometry which relates to sides and angles or spherical triangles. On the surface of a sphere the ‘straight line’ connecting two points is actually the arc of a curve on the sphere surface. This curve arc is a arc along a great circle on the sphere and is mathematically called the spherical distance. <\/p>\n\n\n\n
In the haversine calculation, the radius of the earth varies around 6356.752 km to 6378.137 km so choosing a value will result in a error that can not be less than 0.5%.<\/p>\n\n\n\n