Please make sure, you arrange your parameters like this:
Longitude 1, Latitude 1, Altitude 1 (optional), Longitude 2, Latitude 2, Altitude 2 (optional)
You can either specify 4 or 6 parameters
If you are using the default constructor with two dimensional positions (lng + lat only), please use the constructor like this:
BBox(lng1, lat1, lng2, lat2);
Takes any LineString, MultiLineString, Polygon or MultiPolygon and
returns the overlapping lines between both features.
feature1 first feature
feature2 second feature
tolerance tolerance distance to match overlapping line segments, default is 0
unit the unit in which the tolerance is expressed, default is kilometers
returns FeatureCollection<LineString> lines(s) that are overlapping between both features