code: public static LineString of(Iterable<Point> points) {
          LinearPositions.Builder positionsBuilder = LinearPositions.builder();
          for(Point point : points) {
              positionsBuilder.addSinglePosition(point.positions());
          }
          return new LineString(positionsBuilder.build());
  
      }
docs: Creates a LineString from the given points.
  
  @param points Iterable of Point at least by 2 points.
  @return a LineString