Skip to main content

Retrieve grouped assigned nodes a single vehicle

GET 

/api/v2/vehicle/:vehicle_id/assigned_nodes_grouped

Returns all nodes assigned to a vehicle in sequence.

  1. Grouped by node.scheduled_ts . If project.settings.node_grouping_threshold is bigger than 0, difference between scheduled_ts should be less than node_grouping_threshold.
    1. For example, scheduled_ts of node A is at 7:00. scheduled_ts of node B is at 07:05. And project.settings.node_grouping_threshold is 5 mins We need to group both of them.
    2. If project.settings.node_grouping_threshold is less than 5 mins then nodes are not grouped .
  2. Group nodes by node.lat and node.lon.
  3. In node group
    1. All picks up are always on top.
    2. Then, sorted it by node.assignment_order.
  4. Redelivery node is always on bottom of list group.
    1. Nodes grouping logic is similar to above.

Request

Responses

successful operation