kmDistanceBetween static method

double kmDistanceBetween({
  1. required Coordinates to,
  2. required Coordinates from,
})

return geographical distance between two Co-ordinates

Implementation

static double kmDistanceBetween(
    {required Coordinates to, required Coordinates from}) {
  return MathUtils.kmDistance(to, from);
}