distance method

  1. @override
double distance(
  1. LatLng p1,
  2. LatLng p2
)
override

Computes the distance between two points.

The function uses the DistanceAlgorithm specified in the CTOR

Implementation

@override
double distance(final LatLng p1, final LatLng p2) =>
    _round(_calculator.distance(p1, p2));