respectedSequences integration problem

Questions refering to the PTV Optiflow based API within PTV Developer (launched on 20.12.2023)
Post Reply
andrei.koelsnikovich
Posts: 5
Joined: Mon Sep 29, 2025 8:36 am

respectedSequences integration problem

Post by andrei.koelsnikovich »

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:

Code: Select all

"respectedSequences": [
        {
          "orderCategories": [
            "StartDepot",
            "BusinessOrder",
            "EndDepot"
          ]
        }
      ]
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.
2248-request.txt
(22.43 KiB) Not downloaded yet
2248-response.txt
(10.06 KiB) Not downloaded yet
Best regards,
Andrei
Post Reply