measure method
Measures the length of a line geometry.
Implementation
double measure(dynamic geoJson) {
final paths = generate(geoJson);
if (paths.isEmpty) return 0;
double totalLength = 0;
for (final path in paths) {
totalLength += path.polylineLength;
}
return totalLength;
}