Reference documentation and code samples for the Google Maps Route Optimization V1 Client class AggregatedMetrics.
Aggregated metrics for ShipmentRoute (resp. for OptimizeToursResponse over all Transition and/or Visit (resp.
over all ShipmentRoute ) elements.
Generated from protobuf message google.maps.routeoptimization.v1.AggregatedMetrics
Namespace
Google \ Maps \ RouteOptimization \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ performed_shipment_count
int
Number of shipments performed. Note that a pickup and delivery pair only counts once.
↳ travel_duration
↳ wait_duration
↳ delay_duration
↳ break_duration
↳ visit_duration
↳ total_duration
Google\Protobuf\Duration
The total duration should be equal to the sum of all durations above. For routes, it also corresponds to: <xref uid="\Google\Maps\RouteOptimization\V1\ShipmentRoute::getVehicleEndTime()">ShipmentRoute.vehicle_end_time</xref> - <xref uid="\Google\Maps\RouteOptimization\V1\ShipmentRoute::getVehicleStartTime()">ShipmentRoute.vehicle_start_time</xref>
↳ travel_distance_meters
float
Total travel distance for a route or a solution.
↳ max_loads
array| Google\Protobuf\Internal\MapField
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 .
getPerformedShipmentCount
Number of shipments performed. Note that a pickup and delivery pair only counts once.
int
setPerformedShipmentCount
Number of shipments performed. Note that a pickup and delivery pair only counts once.
var
int
$this
getTravelDuration
Total travel duration for a route or a solution.
hasTravelDuration
clearTravelDuration
setTravelDuration
Total travel duration for a route or a solution.
$this
getWaitDuration
Total wait duration for a route or a solution.
hasWaitDuration
clearWaitDuration
setWaitDuration
Total wait duration for a route or a solution.
$this
getDelayDuration
Total delay duration for a route or a solution.
hasDelayDuration
clearDelayDuration
setDelayDuration
Total delay duration for a route or a solution.
$this
getBreakDuration
Total break duration for a route or a solution.
hasBreakDuration
clearBreakDuration
setBreakDuration
Total break duration for a route or a solution.
$this
getVisitDuration
Total visit duration for a route or a solution.
hasVisitDuration
clearVisitDuration
setVisitDuration
Total visit duration for a route or a solution.
$this
getTotalDuration
The total duration should be equal to the sum of all durations above.
For routes, it also corresponds to:
<xref uid="\Google\Maps\RouteOptimization\V1\ShipmentRoute::getVehicleEndTime()">ShipmentRoute.vehicle_end_time</xref>
-
<xref uid="\Google\Maps\RouteOptimization\V1\ShipmentRoute::getVehicleStartTime()">ShipmentRoute.vehicle_start_time</xref>
hasTotalDuration
clearTotalDuration
setTotalDuration
The total duration should be equal to the sum of all durations above.
For routes, it also corresponds to:
<xref uid="\Google\Maps\RouteOptimization\V1\ShipmentRoute::getVehicleEndTime()">ShipmentRoute.vehicle_end_time</xref>
-
<xref uid="\Google\Maps\RouteOptimization\V1\ShipmentRoute::getVehicleStartTime()">ShipmentRoute.vehicle_start_time</xref>
$this
getTravelDistanceMeters
Total travel distance for a route or a solution.
float
setTravelDistanceMeters
Total travel distance for a route or a solution.
var
float
$this
getMaxLoads
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.
setMaxLoads
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.
$this