Prioritize the jobs
Introduction
Try ExampleIn this example we will take a look at how to run a query with job priority assigned to them. Higher priority jobs will not affect the order of the jobs but only influence whether the job will be assigned.
jobs: priority
priority: Set the priority of a job. The priority here will not affect the order of jobs but only influence whether this job will be assigned. Here, each job's priority is 0.
vehicles:
max_tasks: Set the limit on how many tasks a vehicle can take. Here, the vehicle can take up to a maximum of 5 tasks.
Request Example
1
2{
3 "jobs":[
4 {
5 "id":3209765,
6 "location_index":0,
7 "service":2700,
8 "priority":0,
9 "time_windows":[
10 [
11 1661760000,
12 1661803200
13 ]
14 ]
15 },
16 {
17 "id":3209775,
18 "location_index":1,
19 "service":2700,
20 "priority":0,
21 "time_windows":[
22 [
23 1661760000,
24 1661803200
25 ]
26 ]
27 }
28 ],
29 "vehicles":[
30 {
31 "id":0,
32 "start_index":0,
33 "end_index":2,
34 "max_tasks": 5
35 }
36 ],
37 "locations":{
38 "id":1,
39 "description":"Single Route Optimization",
40 "location":"42.47286605834961,-70.92628479003906|42.27931213378906,-71.1204833984375|42.4188232421875,-71.15650177001953"
41 }
42}
43
Result

VRPPDTW
Service example including skills and break times