Page 1 of 1

Pickup and delivery - different route scenarios in one request

Posted: Tue Nov 07, 2023 9:48 am
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

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

Posted: Tue Nov 07, 2023 10:07 am
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