pub fn calculate_distance(
    location_1: &GeoLocation,
    location_2: &GeoLocation
) -> f64
Expand description

Calculate the haversine distance between two locations.

§Arguments

  • location_1 - A Location struct representing the first location.
  • location_2 - A Location struct representing the second location.

§Returns

A f64 representing the distance between the two locations in kilometers.