Skip to main content
. 2022 Dec 16;22(24):9948. doi: 10.3390/s22249948
Algorithm 3: Trajectory Recovery.
 Input: query feature q ; road network N ; feature gallery F ; threshold δ
 Output: complete trajectory P
  • 1 

    Load all the spatial-temporal knowledge with N ;

  • 2 

    Search k of the most similar features in F and denote them as top_k ;

  • 3 

    Initialize proximity graph G ;

  • 4 

    for ni,nj∈ top_k  do

  • 5 

      Calculate coherence of ni,nj and denote it as s ;

  • 6 

      if s > δ,  then

  • 7 

        G.AddEdgeni→nj ;

  • 8 

    Pc←CoarsePathSelectionG ;

  • 9 

    Pf←FinePathSelectionPc ;

  • 10 

    Pm←MergePf ;

  • 11 

    P←RefinePm ;

  • 12 

    return P ;