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.RSRSP.rs;
3 ERS.tpminRSP.tpmin;
4 ERS.tpmaxRSP.tpmax;
// augmenting a route summary with area summries
5 ERS.ASminGetAreaSummary RSP.ar, tpmin;
6 ERS.ASmaxGetAreaSummary RSP.ar, tpmax;
// combine a spatio-temporal hashkey with an extended route summary
7 ERSP ← a pair of (key, ERS);
8 return ERSP;