Search…
Stop groups
You will learn the basics of using stop groups on cloud.
To assign a set of stops to the same route you have several options.
  • If you want stops to be assigned to a specific vehicle's route, use compatibility attributes. Note, stops may be left unassigned.
  • If you want stops to be assigned to a specific vehicle's route and enforce their assignment to the route, use backlogs.
  • If you want to specify the order of stops in a group, use precedence/succession (see the batched request tutorial for an example of how to do this.)
  • If you want to group stops without specifying the vehicles to assign them to or stop order, use stop groups (this page).

Stop groups

Stop groups are used with the stop_groups attribute which defines a list of groups. Each group must consist of at least 2 stops, given by their IDs.
JSON
1
{
2
"defaults": {
3
"vehicles": {
4
"shift_start": "2021-08-24T09:00:00-06:00",
5
"speed": 10
6
}
7
},
8
"vehicles": [
9
{
10
"id": "vehicle-1"
11
},
12
{
13
"id": "vehicle-2"
14
}
15
],
16
"stops": [
17
{
18
"id": "location-1",
19
"position": {
20
"lon": 7.6129,
21
"lat": 51.957
22
}
23
},
24
{
25
"id": "location-2",
26
"position": {
27
"lon": 7.6166,
28
"lat": 51.9635
29
}
30
},
31
{
32
"id": "location-3",
33
"position": {
34
"lon": 7.6258,
35
"lat": 51.9624
36
}
37
},
38
{
39
"id": "location-4",
40
"position": {
41
"lon": 7.6386,
42
"lat": 51.9449
43
}
44
},
45
{
46
"id": "location-5",
47
"position": {
48
"lon": 7.5896,
49
"lat": 51.9486
50
}
51
},
52
{
53
"id": "location-6",
54
"position": {
55
"lon": 7.5965,
56
"lat": 51.9455
57
}
58
},
59
{
60
"id": "location-7",
61
"position": {
62
"lon": 7.5921,
63
"lat": 51.9573
64
}
65
},
66
{
67
"id": "location-8",
68
"position": {
69
"lon": 7.6048,
70
"lat": 51.9492
71
}
72
}
73
],
74
"stop_groups": [
75
[
76
"location-1",
77
"location-3"
78
],
79
[
80
"location-2",
81
"location-4",
82
"location-7"
83
]
84
]
85
}
Copied!
Export as PDF
Copy link
Contents
Stop groups