TimeSlots at Depot

Questions refering to the Optiflow based API within PTV Developer (launched on 20.12.2023)
Post Reply
clvo
Posts: 14
Joined: Thu Jun 02, 2022 7:42 am

TimeSlots at Depot

Post by clvo »

Hello everyone,
The following use case:
Depot example
  • 2 deliveries (Z1, Z2).
  • Z1 must be collected from the depot between 8 and 9 am.
  • Z2 between 10 and 11 am.
(How) can I map this?
I have timeslots at the depot, but no pickup element for a delivery order to set the timeslot IDs?
Is this only possible via delivery pickups?
If so... does that work even though I no longer have a depot? :(
Thank you very much!
BR Claus
User avatar
Bernd Welter
Site Admin
Posts: 2903
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: TimeSlots at Depot

Post by Bernd Welter »

Hello Claus,

looks like this request has been overseen - sorry for that. Just had a chat with DEV about this:
As of today 8.9.2025 we offer the new feature
  • Pickup-delivery orders can now be combined with pickup and/or delivery orders.
So if your order is already preassigned to a specific depot you might consider to migrate this single order from a "DeliveryOrder" to a "PickupDeliveryOrder":
  • Use a single Location at the "depot coordinates" with the two timeslots "early" and "late":

    Code: Select all

    {
      "id": "myDepotLocation",
      ...
      "stopProperties":{
        "timeSlots":[
         "id":"early" , "earliestStart" : "___08:00", "latestEnd":"___09:00",
         "id":"late", "earliestStart" : "___10:00", "latestEnd" : "___11:00"
        ]...
      }
    }
    
  • Assign a single depot to this location? Not required. The order is not assigned to the depot but to the location.
  • For the two different pickupdelivery orders specify the explizit timeLoSlotID of the proper slot:
    • Code: Select all

      {
        "id" : "myEarlyOrder",
        "pickup" : {
          "locationId" : "myDepotLocation" , "timeSlotIds : [ "early" ]...
        }
      }
      
    • Code: Select all

      {
        "id" : "myLateOrder",
        "pickup" : {
          "locationId" : "myDepotLocation" , "timeSlotIds : [ "late" ]...
        }
      }
      
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply