AggregatedMetrics
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
การแสดง JSON |
{
"performedShipmentCount": integer,
"travelDuration": string,
"waitDuration": string,
"delayDuration": string,
"breakDuration": string,
"visitDuration": string,
"totalDuration": string,
"travelDistanceMeters": number,
"maxLoads": {
string: {
object (VehicleLoad )
},
...
}
} |
ช่อง |
performedShipmentCount |
integer
จำนวนการจัดส่งที่ดำเนินการ โปรดทราบว่าระบบจะนับคู่การรับและการนำส่งเพียงครั้งเดียว
|
travelDuration |
string (Duration format)
ระยะเวลาเดินทางรวมสำหรับเส้นทางหรือโซลูชัน ระยะเวลาเป็นวินาทีโดยมีเลขเศษส่วนไม่เกิน 9 หลัก ลงท้ายด้วย "s " เช่น "3.5s"
|
waitDuration |
string (Duration format)
ระยะเวลารอรวมสำหรับเส้นทางหรือโซลูชัน ระยะเวลาเป็นวินาทีที่มีเศษทศนิยมได้สูงสุด 9 หลัก โดยลงท้ายด้วย "s " เช่น "3.5s"
|
delayDuration |
string (Duration format)
ระยะเวลาความล่าช้าทั้งหมดของเส้นทางหรือโซลูชัน ระยะเวลาเป็นวินาทีที่มีเศษทศนิยมได้สูงสุด 9 หลัก โดยลงท้ายด้วย "s " เช่น "3.5s"
|
breakDuration |
string (Duration format)
ระยะเวลาพักทั้งหมดของเส้นทางหรือโซลูชัน ระยะเวลาเป็นวินาทีโดยมีเลขเศษส่วนไม่เกิน 9 หลัก ลงท้ายด้วย "s " เช่น "3.5s"
|
visitDuration |
string (Duration format)
ระยะเวลาเข้าชมทั้งหมดสำหรับเส้นทางหรือโซลูชัน ระยะเวลาเป็นวินาทีที่มีเศษทศนิยมได้สูงสุด 9 หลัก โดยลงท้ายด้วย "s " เช่น "3.5s"
|
totalDuration |
string (Duration format)
ระยะเวลารวมควรเท่ากับผลรวมของระยะเวลาทั้งหมดข้างต้น สำหรับเส้นทาง ค่านี้จะสอดคล้องกับข้อมูลต่อไปนี้
[ShipmentRoute.vehicle_end_time][google.maps.routeoptimization.v1.ShipmentRoute.vehicle_end_time] - [ShipmentRoute.vehicle_start_time][google.maps.routeoptimization.v1.ShipmentRoute.vehicle_start_time]
ระยะเวลาเป็นวินาทีที่มีเศษทศนิยมได้สูงสุด 9 หลัก โดยลงท้ายด้วย "s " เช่น "3.5s"
|
travelDistanceMeters |
number
ระยะทางรวมในการเดินทางสำหรับเส้นทางหรือโซลูชัน
|
maxLoads |
map (key: string, value: object (VehicleLoad ))
โหลดสูงสุดตลอดเส้นทาง (โซลูชันคำตอบ) สำหรับแต่ละปริมาณบนเส้นทางนี้ (โซลูชันคำตอบ) คำนวณเป็นค่าสูงสุดจาก Transition.vehicle_loads ทั้งหมด (resp. ShipmentRoute.metrics.max_loads
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-29 UTC
[null,null,["อัปเดตล่าสุด 2025-08-29 UTC"],[[["\u003cp\u003eThis data represents aggregated metrics for either a \u003ccode\u003eShipmentRoute\u003c/code\u003e or an \u003ccode\u003eOptimizeToursResponse\u003c/code\u003e, covering all \u003ccode\u003eTransition\u003c/code\u003e and \u003ccode\u003eVisit\u003c/code\u003e elements or all \u003ccode\u003eShipmentRoute\u003c/code\u003e elements, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe JSON representation of these metrics includes fields such as \u003ccode\u003eperformedShipmentCount\u003c/code\u003e, \u003ccode\u003etravelDuration\u003c/code\u003e, \u003ccode\u003ewaitDuration\u003c/code\u003e, \u003ccode\u003edelayDuration\u003c/code\u003e, \u003ccode\u003ebreakDuration\u003c/code\u003e, \u003ccode\u003evisitDuration\u003c/code\u003e, \u003ccode\u003etotalDuration\u003c/code\u003e, \u003ccode\u003etravelDistanceMeters\u003c/code\u003e, and \u003ccode\u003emaxLoads\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eEach duration field (\u003ccode\u003etravelDuration\u003c/code\u003e, \u003ccode\u003ewaitDuration\u003c/code\u003e, \u003ccode\u003edelayDuration\u003c/code\u003e, \u003ccode\u003ebreakDuration\u003c/code\u003e, \u003ccode\u003evisitDuration\u003c/code\u003e, \u003ccode\u003etotalDuration\u003c/code\u003e) is represented as a string in the \u003ca href=\"https://protobuf.dev/reference/protobuf/google.protobuf/#duration\"\u003eDuration\u003c/a\u003e format, specifying a time in seconds.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003emaxLoads\u003c/code\u003e field is a map that provides the maximum load achieved for each quantity over the entire route or solution.\u003c/p\u003e\n"],["\u003cp\u003eThe total duration is equal to the sum of all the durations fields presented, and corresponds to the difference between the vehicle end time and the vehicle start time.\u003c/p\u003e\n"]]],[],null,["# AggregatedMetrics\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nAggregated metrics for [ShipmentRoute](/maps/tt/route-optimization/experimental/load-cost/reference/rest/v1/ShipmentRoute) (resp. for [OptimizeToursResponse](/maps/tt/route-optimization/experimental/load-cost/reference/rest/v1/OptimizeToursResponse) over all [Transition](/maps/tt/route-optimization/experimental/load-cost/reference/rest/v1/ShipmentRoute#Transition) and/or [Visit](/maps/tt/route-optimization/experimental/load-cost/reference/rest/v1/ShipmentRoute#Visit) (resp. over all [ShipmentRoute](/maps/tt/route-optimization/experimental/load-cost/reference/rest/v1/ShipmentRoute)) elements.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"performedShipmentCount\": integer, \"travelDuration\": string, \"waitDuration\": string, \"delayDuration\": string, \"breakDuration\": string, \"visitDuration\": string, \"totalDuration\": string, \"travelDistanceMeters\": number, \"maxLoads\": { string: { object (/maps/tt/route-optimization/experimental/load-cost/reference/rest/v1/VehicleLoad) }, ... } } ``` |\n\n| Fields ||\n|--------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `performedShipmentCount` | `integer` Number of shipments performed. Note that a pickup and delivery pair only counts once. |\n| `travelDuration` | `string (`[Duration](https://protobuf.dev/reference/protobuf/google.protobuf/#duration)` format)` Total travel duration for a route or a solution. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `\"3.5s\"`. |\n| `waitDuration` | `string (`[Duration](https://protobuf.dev/reference/protobuf/google.protobuf/#duration)` format)` Total wait duration for a route or a solution. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `\"3.5s\"`. |\n| `delayDuration` | `string (`[Duration](https://protobuf.dev/reference/protobuf/google.protobuf/#duration)` format)` Total delay duration for a route or a solution. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `\"3.5s\"`. |\n| `breakDuration` | `string (`[Duration](https://protobuf.dev/reference/protobuf/google.protobuf/#duration)` format)` Total break duration for a route or a solution. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `\"3.5s\"`. |\n| `visitDuration` | `string (`[Duration](https://protobuf.dev/reference/protobuf/google.protobuf/#duration)` format)` Total visit duration for a route or a solution. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `\"3.5s\"`. |\n| `totalDuration` | `string (`[Duration](https://protobuf.dev/reference/protobuf/google.protobuf/#duration)` format)` The total duration should be equal to the sum of all durations above. For routes, it also corresponds to: [ShipmentRoute.vehicle_end_time][google.maps.routeoptimization.v1.ShipmentRoute.vehicle_end_time] - [ShipmentRoute.vehicle_start_time][google.maps.routeoptimization.v1.ShipmentRoute.vehicle_start_time] A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `\"3.5s\"`. |\n| `travelDistanceMeters` | `number` Total travel distance for a route or a solution. |\n| `maxLoads` | `map (key: string, value: object (`[VehicleLoad](/maps/tt/route-optimization/experimental/load-cost/reference/rest/v1/VehicleLoad)`))` Maximum load achieved over the entire route (resp. solution), for each of the quantities on this route (resp. solution), computed as the maximum over all [Transition.vehicle_loads](/maps/tt/route-optimization/experimental/load-cost/reference/rest/v1/ShipmentRoute#Transition.FIELDS.vehicle_loads) (resp. [ShipmentRoute.metrics.max_loads](/maps/tt/route-optimization/experimental/load-cost/reference/rest/v1/AggregatedMetrics#FIELDS.max_loads). |"]]