distance method
double
distance(
- LatLng p1,
- LatLng p2, {
- 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));