| Algorithm 1: Candidate Path Search (CPS) | |
|
Input: GPS trajectory ; the set of edges in road network ; search radius ; heading change threshold ; Output: a set of | |
| 1. | for () |
| 2. | CandidateRoadSegmentQuery(,,,) |
| 3. | end for |
| 4. | |
| 5. | for () |
| 6. | ; |
| 7. | foreach ( in ) |
| 8. | foreach ( in ) |
| 9. | |
| 10. | PathForestQuery(,,); |
| 11. | ; |
| 12. | end foreach |
| 13. | end foreach |
| 14. | ; |
| 15. | end for |