Optimization gives back the points as unassigned

This is the Json that i am giving as an input:

{
   "vehicles":[
      {
         "id":2,
         "profile":"driving-car",
         "start":[
            26.0958760358374,
            44.4791973552
         ],
         "max_tasks":10
      }
   ],
   "options":{
      "g":true,
      "c":true
   },
   "shipments":[
      {
         "pickup":{
            "id":1001,
            "location":[
               26.095614036,
               44.488400708
            ]
         },
         "delivery":{
            "id":10000,
            "location":[
               26.0984691395,
               44.4811418857
            ]
         }
      },
      {
         "pickup":{
            "id":1010,
            "location":[
               26.09565399,
               44.482956000
            ]
         },
         "delivery":{
            "id":10009,
            "location":[
               26.09846913,
               44.481141885
            ]
         }
      },
      {
         "pickup":{
            "id":1003,
            "location":[
               26.09565399999,
               44.4829560
            ]
         },
         "delivery":{
            "id":10002,
            "location":[
               26.09106330546,
               44.48411265103
            ]
         }
      }
   ]
}

But as a result i just get an empty route with all the points unassigned. Any ideas?

Hey,

when using

"c": true

you’re using plan mode. The idea here is that you supply your own solution (i.e. ordering) for your problem and VROOM calculates ETAs for all of your steps. That means you’ll have to supply a vehicle.steps-array describing said solution.

Compare the original PR for a bit more explanation on plan mode and this VROOM-example on how the steps-array would look like.

Best regards

1 Like