A GPS Trajectory Segmentation Method for Transportation Mode Inference