Skip to main content

calc_haversine_km

Function calc_haversine_km 

Source
pub fn calc_haversine_km(lon1: f64, lat1: f64, lon2: f64, lat2: f64) -> f64
Expand description

The great circle distance in kilometres between two longitude/latitude points in degrees, by the haversine formula on a sphere of EARTH_RADIUS_KM. The one great circle distance: every caller that measures a span between geographic coordinates reads it.