Vincenty inverse formula — geodesic distance between two points on the WGS-84 ellipsoid.
More accurate than Haversine for long distances (sub-millimeter accuracy).
lng1
lat1
lng2
lat2
Distance in meters. Returns f64::NAN if the points are antipodal (no convergence).
f64::NAN
Vincenty inverse formula — geodesic distance between two points on the WGS-84 ellipsoid.
More accurate than Haversine for long distances (sub-millimeter accuracy).
Arguments
lng1,lat1: Point 1 in degrees.lng2,lat2: Point 2 in degrees.Returns
Distance in meters. Returns
f64::NANif the points are antipodal (no convergence).