Classifying Spatial Trajectories