Path
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"shipment": string,
"segments": [
{
object (AnnotatedPathSegment )
}
],
"departureTime": {
object (DateTime )
},
"arrivalTime": {
object (DateTime )
},
"incurredPenalties": number,
"costConstant": number,
"cost": {
string: number,
...
}
} |
字段 |
shipment |
string
必需。路径正在描述的运单。
|
segments[] |
object (AnnotatedPathSegment )
必需。路径的路段。
|
departureTime |
object (DateTime )
仅限输出。运单的实际发货时间。
|
arrivalTime |
object (DateTime )
仅限输出。商品的实际到达时间。
|
incurredPenalties |
number
仅限输出。不遵守由软约束引起的惩罚。
|
costConstant |
number
仅限输出。此运单对应的固定费用。
|
cost |
map (key: string, value: number)
仅限输出。按组件划分的费用。 包含一系列 "key": value 对的对象。示例:{ "name": "wrench", "mass": "1.3kg", "count": "3" } 。
|
AnnotatedPathSegment
表示路径中具有更多冗余信息的部分,这些信息可根据所包含的 PathSegment 和 Network 进行计算。这些消息通常由 API 服务器返回。
JSON 表示法 |
{
"segment": {
object (PathSegment )
},
"arrivalTime": {
object (DateTime )
},
"departureTime": {
object (DateTime )
},
"isCommitted": boolean,
"segmentCostConstant": number,
"segmentCostDueToVehicle": {
string: number,
...
},
"segmentCostDueToDeparture": number,
"segmentCostDueToArrival": number
} |
字段 |
segment |
object (PathSegment )
必需。正在添加注释的片段。
|
arrivalTime |
object (DateTime )
仅限输出。此片段的到达时间。
|
departureTime |
object (DateTime )
仅限输出。此路段的出发时间。
|
isCommitted |
boolean
仅限输出。API 客户是否已决定提交路径的这一部分。
|
segmentCostConstant |
number
仅限输出。此细分的常量费用。
|
segmentCostDueToVehicle |
map (key: string, value: number)
仅限输出。每个维度一个条目。 包含一系列 "key": value 对的对象。示例:{ "name": "wrench", "mass": "1.3kg", "count": "3" } 。
|
segmentCostDueToDeparture |
number
仅限输出。因线路轮播而产生的费用:出发。
|
segmentCostDueToArrival |
number
仅限输出。订单项轮播导致的费用:到达。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-10-14。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-10-14。"],[[["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"]]