| Algorithm 3: Sliding-Window Algorithm for Trajectory Resampling | |
|
Input: a set of GPS trajectories , search radius Output: a collaborative GPS trajectory | |
| 1. | ; |
| 2. | , endPs Ps; |
| 3. | ; |
| 4. | while (.contains(endPs)) |
| 5. | create with radius and ; |
| 6. | rtree.query(,); |
| 7. | ; |
| 8. | rtree.query(,,); |
| 9. | ; |
| 10. | ; |
| 11. | end while |