Query optimisation in real-time spatial big data