Minimal helper to create LINESTRING XYZM for mapdeck::add_trips() using an integer range from a time/index column (e.g. "dispersaltime").
type = "points": group points by
group_col(default "id") ordered by time, build one LINESTRING per group with M = integer(time).type = "linestring": if
id_colpresent, collapse time-sliced features per id and ramp M linearly from t -> next_t along vertices; last slice uses next_t = t + 1. If noid_col, each feature ramps t -> t+1.