Skip to main content
. 2017 Sep 25;17(10):2201. doi: 10.3390/s17102201
Algorithm 4: Build an Extended Route Summary
  Input: RSP: tuple (key k, area ar, first time period tpmin, second time period tpmax, route summary rs)
 Output: ERSP: pair (spatio-temporal hash-key key, Extended Route Summary ERS)
1 Initialize ERS as Extended Route Summary;
 // Assign a route summary
2 ERS.RS ← RSP.rs;
3 ERS.tpmin ← RSP.tpmin;
4 ERS.tpmax ← RSP.tpmax;
 // augmenting a route summary with area summries
5 ERS.ASmin ← GetAreaSummary RSP.ar, tpmin;
6 ERS.ASmax ← GetAreaSummary RSP.ar, tpmax;
 // combine a spatio-temporal hashkey with an extended route summary
7 ERSP ← a pair of (key, ERS);
8 return ERSP;