A Predictive and Optimization Approach for Enhanced Urban Mobility Using Spatiotemporal Data