distanceTo method

Future<double> distanceTo(
  1. Location dest
)

Returns the approximate distance in meters between this location and the given location.

See: https://developer.android.com/reference/android/location/Location#distanceTo(android.location.Location)

Implementation

Future<double> distanceTo(final Location dest) {
  return distanceBetween(latitude, longitude, dest.latitude, dest.longitude);
}