distance method

  1. @override
num distance(
  1. GeoLatLng p1,
  2. GeoLatLng p2
)
override

Computes the distance between two points.

The function uses the DistanceAlgorithm specified in the CTOR

Implementation

@override
num distance(final GeoLatLng p1, final GeoLatLng p2) =>
    _round(_calculator.distance(p1, p2).toDouble());