coordinateFromStart method
Implementation
turf.Feature<turf.Point> coordinateFromStart(double distance) {
final pointAlong = turf.along(_lineStringFeature, distance);
pointAlong.properties = {
'distance': distance,
'nearestIndex': findNearestFloorIndex(distance)
};
pointAlong.properties?['distance'] = distance;
pointAlong.properties?['nearestIndex'] = findNearestFloorIndex(distance);
return pointAlong;
}