distanceTo method

double distanceTo(
  1. GpsCoordinates other
)

Implementation

double distanceTo(GpsCoordinates other) => sqrt(
  pow(latitude - other.latitude, 2) +
  pow(longitude - other.longitude, 2),
);