Routing for freight and passenger vehicles