Return a trajectory from a set of points.
The result is either a linestring or a multipoint depending on whether the interpolation is either step/discrete or linear.