Trajectory Pattern Mining for Urban Computing in the Cloud