Class: Google::Cloud::Optimization::V1::ShipmentRoute::TravelStep Deprecated
- Inherits:
-
Object
- Object
- Google::Cloud::Optimization::V1::ShipmentRoute::TravelStep
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/optimization/v1/fleet_routing.rb
Overview
This message is deprecated and may be removed in the next major version update.
Deprecated: Use
ShipmentRoute.Transition
instead. Travel between each visit along the route: from the vehicle's
start_location
to the first visit's arrival_location
, then from the
first visit's departure_location
to the second visit's
arrival_location
, and so on until the vehicle's end_location
. This
accounts only for the actual travel between visits, not counting the
waiting time, the time spent performing a visit, nor the distance covered
during a visit.
Invariant: travel_steps_size() == visits_size() + 1
.
If the vehicle does not have a start_ and/or end_location, the corresponding travel metrics are 0 and/or empty.
Instance Attribute Summary collapse
-
#distance_meters ⇒ ::Float
Distance traveled during the step.
-
#duration ⇒ ::Google::Protobuf::Duration
Duration of the travel step.
-
#route_polyline ⇒ ::Google::Cloud::Optimization::V1::ShipmentRoute::EncodedPolyline
The encoded polyline representation of the route followed during the step.
-
#traffic_info_unavailable ⇒ ::Boolean
When traffic is requested via OptimizeToursRequest.consider_road_traffic, and the traffic info couldn't be retrieved for a TravelStep, this boolean is set to true.
Instance Attribute Details
#distance_meters ⇒ ::Float
Returns Distance traveled during the step.
2316 2317 2318 2319 |
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 2316 class TravelStep include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#duration ⇒ ::Google::Protobuf::Duration
Returns Duration of the travel step.
2316 2317 2318 2319 |
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 2316 class TravelStep include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#route_polyline ⇒ ::Google::Cloud::Optimization::V1::ShipmentRoute::EncodedPolyline
Returns The encoded polyline representation of the route followed during the step.
This field is only populated if OptimizeToursRequest.populate_travel_step_polylines is set to true.
2316 2317 2318 2319 |
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 2316 class TravelStep include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#traffic_info_unavailable ⇒ ::Boolean
Returns When traffic is requested via OptimizeToursRequest.consider_road_traffic, and the traffic info couldn't be retrieved for a TravelStep, this boolean is set to true. This may be temporary (rare hiccup in the realtime traffic servers) or permanent (no data for this location).
2316 2317 2318 2319 |
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 2316 class TravelStep include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |