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