respectedSequences integration problem
Posted: Thu May 14, 2026 8:58 am
Hello.
Issue which we have in integration of Optiflow API into our project helped a lot to polish code and make request building much better. However, after all polishing work done I can't understand what is wrong with request, that Optiflow can't find optimal orders execution sequence.
Some inputs:
1. Our software supports both: vehicle start/end locations and start/end depot to be visited by driver. In Optiflow I found only possibility to define vehicle start/end location. As workaround, which I assumed should work, for start/end depots I decided to use pickupDelivery order where pickup and delivery location is the same. To keep start depot order to be the first in tour and end depot to be the last in tour I've did next: to regular orders I'm adding a category BusinessOrder, and for depots StartDepot and EndDepot categories. To respect proper sequencing I tried to use respectedSequences:
However such solution leads to unscheduled orders and I don't see the reasons why. Would be great if you can take a look into request and try to figure out what is the problem in it. Both request and response are attached.
Best regards,
Andrei
Issue which we have in integration of Optiflow API into our project helped a lot to polish code and make request building much better. However, after all polishing work done I can't understand what is wrong with request, that Optiflow can't find optimal orders execution sequence.
Some inputs:
1. Our software supports both: vehicle start/end locations and start/end depot to be visited by driver. In Optiflow I found only possibility to define vehicle start/end location. As workaround, which I assumed should work, for start/end depots I decided to use pickupDelivery order where pickup and delivery location is the same. To keep start depot order to be the first in tour and end depot to be the last in tour I've did next: to regular orders I'm adding a category BusinessOrder, and for depots StartDepot and EndDepot categories. To respect proper sequencing I tried to use respectedSequences:
Code: Select all
"respectedSequences": [
{
"orderCategories": [
"StartDepot",
"BusinessOrder",
"EndDepot"
]
}
]Andrei