Page Summary
-
This data represents aggregated metrics for either a
ShipmentRouteor anOptimizeToursResponse, covering allTransitionandVisitelements or allShipmentRouteelements, respectively. -
The JSON representation of these metrics includes fields like
performedShipmentCount(integer), various duration types as strings,travelDistanceMeters(number), andmaxLoads(map). -
Duration fields, such as
travelDuration,waitDuration,delayDuration,breakDuration,visitDuration, andtotalDuration, are formatted as strings indicating seconds with up to nine fractional digits (e.g., "3.5s"). -
maxLoadsis a map representing the maximum load achieved over a route or solution for different quantities, calculated fromTransition.vehicle_loadsorShipmentRoute.metrics.max_loads. -
totalDurationis equal to the sum of all the durations in a route or solution and can be computed using the difference betweenShipmentRoute.vehicle_end_timeandShipmentRoute.vehicle_start_time.
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 | |
|---|---|
performed |
Number of shipments performed. Note that a pickup and delivery pair only counts once. |
travel |
Total travel duration for a route or a solution. A duration in seconds with up to nine fractional digits, ending with ' |
wait |
Total wait duration for a route or a solution. A duration in seconds with up to nine fractional digits, ending with ' |
delay |
Total delay duration for a route or a solution. A duration in seconds with up to nine fractional digits, ending with ' |
break |
Total break duration for a route or a solution. A duration in seconds with up to nine fractional digits, ending with ' |
visit |
Total visit duration for a route or a solution. A duration in seconds with up to nine fractional digits, ending with ' |
total |
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 ' |
travel |
Total travel distance for a route or a solution. |
max |
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 |