メインコンテンツまでスキップ

Retrieve all grouped nodes for a single vehicle

GET 

/api/v2/vehicle/:vehicle_id/nodes_grouped

Returns all nodes assigned to a vehicle in sequence.

  1. Grouped by node.scheduled_ts. If project.settings.node_grouping_threshold is greater than 0, the difference between scheduled_ts should be less than node_grouping_threshold.
    1. For example, if the scheduled_ts of node A is at 7:00, the scheduled_ts of node B is at 07:05, and project.settings.node_grouping_threshold is 5 minutes, both nodes will be grouped.
    2. If project.settings.node_grouping_threshold is less than 5 minutes, the nodes are not grouped.
  2. Group nodes by node.lat and node.lon.
  3. Within a node group:
    1. All pickups are always on top.
    2. Then, nodes are sorted by node.assignment_order.
  4. A redelivery node is always at the bottom of the list group.
    1. The node grouping logic is similar to the above.

Request

Responses

successful operation