AggregatedMetrics
Stay organized with collections
Save and categorize content based on your preferences.
JSON representation |
{
"performedShipmentCount": integer,
"travelDuration": string,
"waitDuration": string,
"delayDuration": string,
"breakDuration": string,
"visitDuration": string,
"totalDuration": string,
"travelDistanceMeters": number,
"maxLoads": {
string: {
object (VehicleLoad )
},
...
}
} |
Fields |
performedShipmentCount |
integer
Number of shipments performed. Note that a pickup and delivery pair only counts once.
|
travelDuration |
string (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" .
|
waitDuration |
string (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" .
|
delayDuration |
string (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" .
|
breakDuration |
string (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" .
|
visitDuration |
string (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" .
|
totalDuration |
string (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" .
|
travelDistanceMeters |
number
Total travel distance for a route or a solution.
|
maxLoads |
map (key: string, value: object (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 (resp. ShipmentRoute.metrics.max_loads . An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" } .
|
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-08-27 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-08-27 UTC."],[[["\u003cp\u003eAggregated metrics provide an overview of \u003ccode\u003eShipmentRoute\u003c/code\u003e and \u003ccode\u003eOptimizeToursResponse\u003c/code\u003e elements like \u003ccode\u003eTransition\u003c/code\u003e and \u003ccode\u003eVisit\u003c/code\u003e, where the JSON format is used.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eperformedShipmentCount\u003c/code\u003e represents the total number of shipments completed, counting each pickup and delivery pair as a single shipment.\u003c/p\u003e\n"],["\u003cp\u003eDuration metrics, including \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, and \u003ccode\u003etotalDuration\u003c/code\u003e, are provided in a standardized format with up to nine fractional digits, ending in 's', using \u003ccode\u003estring\u003c/code\u003e format.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003etravelDistanceMeters\u003c/code\u003e gives the overall travel distance for a route or a solution using a \u003ccode\u003enumber\u003c/code\u003e type.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003emaxLoads\u003c/code\u003e details the maximum load for each quantity on a route, with the format \u003ccode\u003emap (key: string, value: object)\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]