Page Summary
-
This data represents aggregated metrics for ShipmentRoute or OptimizeToursResponse, calculated across all Transition and/or Visit elements or ShipmentRoute elements, respectively.
-
The metrics include the number of shipments performed (
performedShipmentCount), total travel duration (travelDuration), total wait duration (waitDuration), total delay duration (delayDuration), total break duration (breakDuration), and total visit duration (visitDuration). -
The
totalDurationmetric equals the sum of the other duration metrics and can also be calculated by subtracting the vehicle's start time from its end time, and all durations are formatted as strings with up to nine fractional digits, ending with 's'. -
travelDistanceMetersshows the total travel distance for a route or solution, andmaxLoadsdetails the maximum load for each quantity on a route or solution, computed as the maximum over all vehicle loads. -
The JSON format provides the schema in which these elements are represented.
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 An object containing a list of |