euclideanDistance static method

double euclideanDistance(
  1. ILatLong latLong1,
  2. ILatLong latLong2
)

Calculates Euclidean distance between two coordinates in degrees.

Uses the Pythagorean theorem for fast approximate distance calculation. Note: This is not accurate for large distances due to Earth's curvature.

latLong1 First coordinate latLong2 Second coordinate Returns distance in degrees

Implementation

static double euclideanDistance(ILatLong latLong1, ILatLong latLong2) {
  return sqrt(euclideanDistanceSquared(latLong1, latLong2));
}