Build linestrings from sequences of points
build_linestrings(points, id_col, x_col = "lon", y_col = "lat")A sfc_LINESTRING in WGS 84, with one linestring per id.
A data.table with the coordinates of each point and an
integer column identifying the linestring of each point. The points of
each linestring must be contiguous and the ids increasing.
The name of the column that identifies the linestrings.
The names of the columns with the longitude and the latitude of each point.