Path
Stay organized with collections
Save and categorize content based on your preferences.
Path for a shipment within the network.
JSON representation |
{
"shipment": string,
"segments": [
{
object (AnnotatedPathSegment )
}
],
"departureTime": {
object (DateTime )
},
"arrivalTime": {
object (DateTime )
},
"incurredPenalties": number,
"costConstant": number,
"cost": {
string: number,
...
}
} |
Fields |
shipment |
string
Required. Shipment whose path is being described.
|
segments[] |
object (AnnotatedPathSegment )
Required. Segments of the path.
|
departureTime |
object (DateTime )
Output only. Actual departure time of the shipment.
|
arrivalTime |
object (DateTime )
Output only. Actual arrival time of the shipment.
|
incurredPenalties |
number
Output only. Penalties due to soft constraints not respected.
|
costConstant |
number
Output only. Constant cost for this shipment.
|
cost |
map (key: string, value: number)
Output only. Cost by components. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" } .
|
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 (PathSegment )
},
"arrivalTime": {
object (DateTime )
},
"departureTime": {
object (DateTime )
},
"isCommitted": boolean,
"segmentCostConstant": number,
"segmentCostDueToVehicle": {
string: number,
...
},
"segmentCostDueToDeparture": number,
"segmentCostDueToArrival": number
} |
Fields |
segment |
object (PathSegment )
Required. Segment being annotated.
|
arrivalTime |
object (DateTime )
Output only. Arrival time of this segment.
|
departureTime |
object (DateTime )
Output only. Departure time of this segment.
|
isCommitted |
boolean
Output only. Whether the API customer has decided to commit this part of the path.
|
segmentCostConstant |
number
Output only. Constant cost for this segment.
|
segmentCostDueToVehicle |
map (key: string, value: number)
Output only. One entry per dimension. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" } .
|
segmentCostDueToDeparture |
number
Output only. Cost due to the line rotation: departure.
|
segmentCostDueToArrival |
number
Output only. Cost due to the line rotation: arrival.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-14 UTC."],[[["Defines the `Path` object which represents the route for a shipment within a network, including segments, departure and arrival times, and associated costs."],["Details the `AnnotatedPathSegment` object, providing richer information about each segment in the path, like arrival/departure times, commitment status, and segment-specific costs."],["Both `Path` and `AnnotatedPathSegment` leverage the `DateTime` object for representing time and include cost breakdowns for better understanding shipment expenses."],["`AnnotatedPathSegment` builds upon `PathSegment` by adding computed information derived from the network context."]]],["This document describes a shipment's path within a network, detailing its segments and associated data. Key information includes the `shipment` identifier, a list of `segments` each represented by an `AnnotatedPathSegment`, `departureTime`, and `arrivalTime`. Each segment has details on `isCommitted` status, and various costs, such as `segmentCostConstant`, `segmentCostDueToVehicle`, `segmentCostDueToDeparture`, and `segmentCostDueToArrival`. Overall costs for the entire shipment are also listed, with `incurredPenalties`, `costConstant` and costs broken down by components.\n"]]