distance property
double
get
distance
Sums up all the distances on the path
final Path path = new Path.from(route);
print(path.length);
Implementation
double get distance {
final tempCoordinates = List<T>.from(_coordinates);
var length = 0.0;
for (var index = 0; index < coordinates.length - 1; index++) {
length += _distance(tempCoordinates[index], tempCoordinates[index + 1]);
}
return round(length);
}