Data-Driven Decision Making For Last-Mile Delivery And Online Platform Operations