public static double[] bbox(@NonNull LineString lineString) {
    List<Point> resultCoords = TurfMeta.coordAll(lineString);
    return bboxCalculator(resultCoords);
  }
public static double [ ] bbox ( @ NonNull LineString lineString ) { List < Point > resultCoords = TurfMeta . coordAll ( lineString ) ; return bboxCalculator ( resultCoords ) ; }
Takes a set of features, calculates the bbox of all input features, and returns a bounding box.

@param lineString a {@link LineString} object
@return A double array defining the bounding box in this order {@code [minX, minY, maxX, maxY]}
@since 2.0.0