Pickup and delivery - different route scenarios in one request

This forum deals with any kind of trip optimization whether it is automatic planning or manual dispatching, refering to transport orders or service planning.
Post Reply
szymon
Posts: 6
Joined: Wed Apr 20, 2022 6:34 am

Pickup and delivery - different route scenarios in one request

Post by szymon »

Hi,
In xTour, I build requests containing the entire available fleet for pickup and delivery orders. I use two options: singleTripPerTour and singleDepotPerTour. Some vehicles can use round trips, while there are vehicles that should only go one way and not return to the depot. Is it possible to control the query so that some vehicles drive in circles, while some vehicles end their route outside the terminal?

Regards,
Szymon
Christian Bräuer
Posts: 3
Joined: Tue Jun 14, 2022 11:08 am

Re: Pickup and delivery - different route scenarios in one request

Post by Christian Bräuer »

Hi,

if you are using xServer 2, you can force the vehicles to end at the depot they started at: Set Vehicle.startLocationId and Vehicle.endLocationId to the id of the depot.
If a vehicle is allowed to end its tour at any location, you can just leave out endLocationId. In this case the vehicle will end at the last site it delivered to.

You can use both settings in a single request by creating multiple vehicles.

Regards,
Christian
Post Reply