Skip to main content

geodesic_destination

Function geodesic_destination 

Source
pub fn geodesic_destination(
    from: &GeoCoord,
    azimuth: f64,
    distance: f64,
) -> Result<GeoCoord, VincentyConvergenceError>
Expand description

Solve the direct geodesic problem: given a start point, azimuth (radians, 0 = north, clockwise), and distance (meters), compute the destination point on the WGS-84 ellipsoid.

Returns Err only if the iteration fails to converge (extremely rare for the direct problem).