With M-Atlas is easy to build trajectories from data stored into the database. It is also possible to apply several constraints during the import in order to cut trajectories into more meaningful representations of the users activities e.g. if the user remain in the same area for long time than this is used to separate the whole trajectory into two trips.
Image:
Galleria: