distance abstract method
double
distance(
- dynamic toDestination, {
- DistanceAlgorithmType algorithm = DistanceAlgorithmType.Haversine,
- LengthUnit unit = LengthUnit.M,
Calculate distance between current center of the map with toDestination
.
toDestination
target location to calculate the distance
algorithm
calculation algorithm to be used.
Available values DistanceAlgorithmType.Haversine and
DistanceAlgorithmType.Vincenty
Default [DistanceAlgorithmType.Haversine]
Implementation
double distance(
dynamic toDestination, {
DistanceAlgorithmType algorithm = DistanceAlgorithmType.Haversine,
LengthUnit unit = LengthUnit.M,
});