Skip to main content

geodesic_distance

Function geodesic_distance 

Source
pub fn geodesic_distance(
    from: &GeoCoord,
    to: &GeoCoord,
) -> Result<GeodesicResult, VincentyConvergenceError>
Expand description

Compute the geodesic distance and azimuths between two geographic coordinates on the WGS-84 ellipsoid using the Vincenty inverse formula.

Returns Err only for near-antipodal pairs where the iteration fails to converge.