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.