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