Enter the latitude and longitude of two locations and select calculate. This routine calculates the distance between two points given the. The general format of the function call is.
Most interactive map applications will allow you to input GPS coordinates of latitude and longitude and tell you the distance between the two points.
Even if you were to substitute it with the radius of a sphere assuming the Earth is spherical at 34377468 NM you will not be near the real accurate distance. This seems pretty straight forward yet I cant find a function that will do it easily. Chris Venesss page also contains an Excel formula of the Haversine equation actually using the spherical lawof cosines for distances between points in kilometres. To calculate the distance between two points there are two popular algorithm Haversine and Geodesic distance is used.