An index for moving objects with constant-time access to their compressed trajectories