How smart cities can use vehicles as an IoT mobile sensor network