Text this: Trajectory pattern mining via clustering based on similarity function for transportation surveillance