vincentyDistance method

double vincentyDistance(
  1. double lat1,
  2. double lon1,
  3. double lat2,
  4. double lon2,
)

Calculate the Vincenty formula for geodesic distance calculation between two geographic points.

Given the latitude and longitude of two points lat1, lon1, lat2, and lon2, this function calculates and returns the geodesic distance between these two points using the Vincenty formula.

Implementation

double vincentyDistance(double lat1, double lon1, double lat2, double lon2) {
  return VincentyDistance.vincentyDistance(lat1, lon1, lat2, lon2);
}