Jointly spatial-temporal representation learning for individual trajectories