Use the following formula to calculate the distance in feet of the shortest line across the surface of the earth that joins the two locations represented by GPS coordinates a1 b1 and a2 b2. Enter the latitude and longitude of two locations and select calculate. The general format of the function call is.
F is latitude l is.
The haversine formula works by finding the great-circle distance between points of latitude and longitude on a sphere which can be used to approximate distance on the Earth since it is mostly spherical. A sinĀ² Df2 cos f1 cos f2 sinĀ² Dl2 c 2 atan2 a 1a d R c. Kilometers km Miles Latitude and Longitude Converter. 143 55 353839 E.