| Algorithm 3: Build a Route Summary |
|
Input: : a tuple (, L), where is the pair (route, time period) and L is a list of taxi information Output: : a tuple (a pair (ar, tp), area, first time period, second time period, a route summary) 1 Initialize as a route summary; // compute elements of a route summary 2 ← ; 3 is calculated from each group ; // Equation (5) 4 is computed from ; // Equation (6) 5 is calculated from ; // Equation (7) 6 a destination area ←; 7 an origin area ←; // compute two time intervals: and 8 ArrivalTimeMapping (, , ); // make an RSP with time invtervals for the extension 9 a spatio-temporal hashkey ← a pair of (, ); 10 ← a tuple of (, , , , ); 11 return ; |