Page Summary
-
Defines the
Pathobject which represents the route for a shipment within a network, including segments, departure and arrival times, and associated costs. -
Details the
AnnotatedPathSegmentobject, providing richer information about each segment in the path, like arrival/departure times, commitment status, and segment-specific costs. -
Both
PathandAnnotatedPathSegmentleverage theDateTimeobject for representing time and include cost breakdowns for better understanding shipment expenses. -
AnnotatedPathSegmentbuilds uponPathSegmentby adding computed information derived from the network context.
Path for a shipment within the network.
| JSON representation |
|---|
{ "shipment": string, "segments": [ { object ( |
| Fields | |
|---|---|
shipment |
Required. Shipment whose path is being described. |
segments[] |
Required. Segments of the path. |
departure |
Output only. Actual departure time of the shipment. |
arrival |
Output only. Actual arrival time of the shipment. |
incurred |
Output only. Penalties due to soft constraints not respected. |
cost |
Output only. Constant cost for this shipment. |
cost |
Output only. Cost by components. An object containing a list of |
AnnotatedPathSegment
Represents a part of a path with more redundant information that can be computed based on the contained PathSegment and the Network. These messages are typically returned by the API server.
| JSON representation |
|---|
{ "segment": { object ( |
| Fields | |
|---|---|
segment |
Required. Segment being annotated. |
arrival |
Output only. Arrival time of this segment. |
departure |
Output only. Departure time of this segment. |
is |
Output only. Whether the API customer has decided to commit this part of the path. |
segment |
Output only. Constant cost for this segment. |
segment |
Output only. One entry per dimension. An object containing a list of |
segment |
Output only. Cost due to the line rotation: departure. |
segment |
Output only. Cost due to the line rotation: arrival. |