code: @NonNull
    public static LineString lineSlice(@NonNull Point startPt, @NonNull Point stopPt,
                                       @NonNull Feature line) {
      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 lineSlice(startPt, stopPt, (LineString) line.geometry());
    }
docs: Takes a line, a start {@link Point}, and a stop point and returns the line in between those
  points.
  
  @param startPt Starting point.
  @param stopPt  Stopping point.
  @param line    Line to slice.
  @return Sliced line.
  @throws TurfException signals that a Turf exception of some sort has occurred.
  @see <a href="http://turfjs.org/docs/#lineslice">Turf Line slice documentation</a>
  @since 1.2.0