A hybrid scheme for real-time prediction of bus trajectories