coordinateFromStart method

Feature<Point> coordinateFromStart(
  1. double distance
)

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;
}