We must update our data structures to point out that all active drivers update their location every four seconds.
To overcome the above problem, we can use a hash table to store the latest position of the drivers and update our quadtree occasionally, say after 10–15 seconds.
Why not skip using hash-table and instead collect driver location every 15 seconds?