IoT-based Mobility Tracking for Smart City Applications