distance method

  1. @override
double distance(
  1. LatLng p1,
  2. LatLng p2, {
  3. LongitudeDirection lngDir = LongitudeDirection.lazy,
})
override

Computes the distance between two points.

The function uses the DistanceCalculator specified in the CTOR

Implementation

@override
double distance(final LatLng p1, final LatLng p2,
        {final LongitudeDirection lngDir = LongitudeDirection.lazy}) =>
    _round(_calculator.distance(p1, p2, lngDir: lngDir));