1. Add trajectory type auto detection.

2. Replace the time stamp of the reference point in the compressed Trajectory to relative time interval.