code: @NonNull
    public static LineString lineSliceAlong(@NonNull Feature line,
                                            @FloatRange(from = 0) double startDist,
                                            @FloatRange(from = 0) double stopDist,
                                            @NonNull @TurfConstants.TurfUnitCriteria String units) {
      if (line.geometry() == null) {
        throw new NullPointerException("Feature.geometry() == null");
      }
      if (!line.geometry().type().equals("LineString")) {
        throw new TurfException("input must be a LineString Feature or Geometry");
      }
  
      return lineSliceAlong((LineString)line.geometry(), startDist, stopDist, units);
    }
docs: Takes a {@link LineString}, a specified distance along the line to a start {@link Point},
  and a specified distance along the line to a stop point
  and returns a subsection of the line in-between those points.
  
  This can be useful for extracting only the part of a route between two distances.
  
  @param line input line
  @param startDist distance along the line to starting point
  @param stopDist distance along the line to ending point
  @param units one of the units found inside {@link TurfConstants.TurfUnitCriteria}
  can be degrees, radians, miles, or kilometers
  @return sliced line
  @throws TurfException signals that a Turf exception of some sort has occurred.
  @see <a href="http://turfjs.org/docs/#lineslicealong">Turf Line slice documentation</a>
  @since 3.1.0