This article from Carto looks into the issue of efficient routing for on-demand services that don’t have the luxury of delaying deliveries until the following day. It’s very detailed and looks into the algorithms that are required for achieving this.

On-demand last mile transportation: Real-time route optimization with Location Intelligence
In recent years we have seen the emergence of numerous marketplace platforms connecting customers to a wide variety of products and services. Clear examples of this are Ube...