struct Google::Maps::RouteOptimization::ShipmentRoute
- Google::Maps::RouteOptimization::ShipmentRoute
- Struct
- Value
- Object
Overview
They don't overlap. The DELAY is unique and must be a contiguous period of time right before the next visit (or vehicle end). Thus, it suffice to know the delay duration to know its start and end time. The BREAKS are contiguous, non-overlapping periods of time. The response specifies the start time and duration of each break. TRAVEL and WAIT are "preemptable": they can be interrupted several times during this transition. Clients can assume that travel happens "as soon as possible" and that "wait" fills the remaining time. A (complex) example:
TRANSITION[i]
--++-----+-----------------------------------------------------------++--> || | | | | | | || || T | B | T | | B | | D || || r | r | r | W | r | W | e || || a | e | a | a | e | a | l || || v | a | v | i | a | i | a || || e | k | e | t | k | t | y || || l | | l | | | | || || | | | | | | || --++-----------------------------------------------------------------++-->
Included Modules
- Google::Resource
- JSON::Serializable
- MessagePack::Serializable
Extended Modules
- JSON::Schema
Defined in:
maps.crConstructors
Instance Method Summary
-
#breaks : Array(Break)
Breaks scheduled for the vehicle performing this route
-
#has_traffic_infeasibilities : Bool
Indicates that inconsistencies in route timings are predicted using traffic-based travel duration estimates when consider_road_traffic is true
-
#metrics : AggregatedMetrics
Duration, distance and load metrics for this route
-
#route_costs : Hash(String, Float64)
Cost of the route, broken down by cost-related request fields
-
#route_polyline : EncodedPolyline | Nil
The encoded polyline representation of the route.
-
#route_total_cost : Float64
Total cost of the route.
-
#transitions : Array(Transition)
Ordered list of transitions for the route
-
#vehicle_end_time : Time
Time at which the vehicle finishes its route
-
#vehicle_index : Int32
Vehicle performing the route, identified by its index in the source ShipmentModel
-
#vehicle_label : String | Nil
Label of the vehicle performing this route, equal to ShipmentModel.vehicles(vehicleIndex).label
-
#vehicle_start_time : Time
Time at which the vehicle starts its route
-
#visits : Array(Visit)
Ordered sequence of visits representing a route.
Macros inherited from module Google::Resource
define(name, *fields)
define,
field(var, key = nil, **options, &block)
field,
field!(var, key = nil, **options, &block)
field!,
field?(var, key = nil, **options, &block)
field?
Constructor Detail
Instance Method Detail
Indicates that inconsistencies in route timings are predicted using traffic-based travel duration estimates when consider_road_traffic is true
Cost of the route, broken down by cost-related request fields
The encoded polyline representation of the route. This field is only populated if OptimizeToursRequest.populate_polylines is set to true
Vehicle performing the route, identified by its index in the source ShipmentModel
Label of the vehicle performing this route, equal to ShipmentModel.vehicles(vehicleIndex).label