I have very simple example and don’t understand why my example does not works as expected.
I have 1 vehicle, 2 shipments and cost time matrix.
The problem

In your code, you did not set time cost for the vehicle type, and in the cost matrix you add time only and no distance, thus your route will always get 0 cost and will not be as expected. So you’d either set time cost for the vehicle type, or add distance to the cost matrix.

When I’ve added the cost per time it’s works as expected. Thanks a lot.
Is there an option to trace the jsrpit logic, that will help to understand what is happen under the hood?