AI-generated Key Takeaways
- 
          This document outlines the aggregated metrics for ShipmentRoute and OptimizeToursResponse within Google Maps Route Optimization. 
- 
          Metrics include shipment count, travel/wait/delay/break/visit/total durations, travel distance, and maximum loads. 
- 
          All durations are represented in seconds with up to nine fractional digits using the Duration format. 
- 
          Maximum loads are provided as a map, keyed by quantity and valued by the corresponding VehicleLoad object. 
- 
          These metrics offer insights into the overall performance and resource utilization of routes and solutions. 
Aggregated metrics for ShipmentRoute (resp. for OptimizeToursResponse over all Transition and/or Visit (resp. over all ShipmentRoute) elements.
| JSON representation | 
|---|
| {
  "performedShipmentCount": integer,
  "travelDuration": string,
  "waitDuration": string,
  "delayDuration": string,
  "breakDuration": string,
  "visitDuration": string,
  "totalDuration": string,
  "travelDistanceMeters": number,
  "maxLoads": {
    string: {
      object ( | 
| Fields | |
|---|---|
| performedShipmentCount | 
 Number of shipments performed. Note that a pickup and delivery pair only counts once. | 
| travelDuration | 
 Total travel duration for a route or a solution. A duration in seconds with up to nine fractional digits, ending with ' | 
| waitDuration | 
 Total wait duration for a route or a solution. A duration in seconds with up to nine fractional digits, ending with ' | 
| delayDuration | 
 Total delay duration for a route or a solution. A duration in seconds with up to nine fractional digits, ending with ' | 
| breakDuration | 
 Total break duration for a route or a solution. A duration in seconds with up to nine fractional digits, ending with ' | 
| visitDuration | 
 Total visit duration for a route or a solution. A duration in seconds with up to nine fractional digits, ending with ' | 
| totalDuration | 
 The total duration should be equal to the sum of all durations above. For routes, it also corresponds to: A duration in seconds with up to nine fractional digits, ending with ' | 
| travelDistanceMeters | 
 Total travel distance for a route or a solution. | 
| maxLoads | 
 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  | 
| performedMandatoryShipmentCount | 
 Number of mandatory shipments performed. Experimental: This field's behavior or existence may change in future. | 
| performedShipmentPenaltyCostSum | 
 The sum of the  Experimental: This field's behavior or existence may change in future. |