haversine
The haversine formula is a mathematical method used to calculate the great-circle distance between two points on a sphere from their latitudes and longitudes. It is named for the haversine function, haversin(θ) = sin^2(θ/2), and is widely used in navigation, geospatial computing, and geographic information systems as a convenient way to estimate distances on Earth or other spherical bodies.
To compute the distance, convert the latitudes φ1, φ2 and longitudes λ1, λ2 to radians. Let Δφ =
Limitations include the spherical assumption: the Earth is an oblate spheroid, so the haversine distance is