Skip to main content
. 2018 Oct 26;18(11):3639. doi: 10.3390/s18113639
Algorithm 1 Preliminary Matching Algorithm
Input: Trajectory P1P2 … → Pn; OSM road network R
Output: HCTPlist; Candidate matched points list ci1, ci2cij
1: Initialize HCTPlist and CanditateList as empty list;
2: fori = 1 to n do
3:   C = GetCandidate (Pi, R, r); //get the candidates within radius r
4:   for j = 1 to C.count do
5:   θij = |azi_Pi-azi_cij|;
6:   if θij < Tθ then
7:    CandidatedList.add (cij);
8:   end if
9:   end for
10:   if CandidateList.count == 1 then
11:   HCTPlist.add (Pi);
12:   end if
13: end for