Function vincenty_core::distance_from_coords
source · pub fn distance_from_coords(c1: &Coord, c2: &Coord) -> Result<f64>
Expand description
Calculate the geodesic distance in Km using geo_types::geometry::Coord.
Arguments
c1
- A geo_types::geometry::Coord object representing the first point.c2
- A geo_types::geometry::Coord object representing the second point.
Returns
Result<f64>
- The geodesic distance between the points in kilometers. Returns an error if the approximation does not finish within the maximum number of iterations.