Big Data Analytics for Connected Vehicles and Smart Cities