Class: Google::Maps::FleetEngine::Delivery::V1::VehicleJourneySegment
- Inherits:
-
Object
- Object
- Google::Maps::FleetEngine::Delivery::V1::VehicleJourneySegment
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/maps/fleetengine/delivery/v1/delivery_vehicles.rb
Overview
Represents a Vehicle’s travel segment - from its previous stop to the current stop. If it is the first active stop, then it is from the Vehicle’s current location to this stop.
Instance Attribute Summary collapse
-
#driving_distance_meters ⇒ ::Google::Protobuf::Int32Value
readonly
Output only.
-
#driving_duration ⇒ ::Google::Protobuf::Duration
readonly
Output only.
-
#path ⇒ ::Array<::Google::Type::LatLng>
readonly
Output only.
-
#stop ⇒ ::Google::Maps::FleetEngine::Delivery::V1::VehicleStop
Specifies the stop location, along with the
Task
s associated with the stop.
Instance Attribute Details
#driving_distance_meters ⇒ ::Google::Protobuf::Int32Value (readonly)
Returns Output only. The travel distance from the previous stop to this stop.
If the current stop is the first stop in the list of journey
segments, then the starting point is the vehicle's location recorded
at the time that this stop was added to the list. This field might not be
present if this journey segment is part of JourneySharingInfo
.
202 203 204 205 |
# File 'proto_docs/google/maps/fleetengine/delivery/v1/delivery_vehicles.rb', line 202 class VehicleJourneySegment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#driving_duration ⇒ ::Google::Protobuf::Duration (readonly)
Returns Output only. The travel time from the previous stop to this stop. If the current stop is the first stop in the list of journey segments, then the starting point is the Vehicle's location recorded at the time that this stop was added to the list.
If this field is defined in the path
Task.remaining_vehicle_journey_segments[0].driving_duration
(gRPC) or
Task.remainingVehicleJourneySegments[0].drivingDuration
(REST),
then it may be populated with the value from
DeliveryVehicle.remaining_duration
(gRPC) or
DeliveryVehicle.remainingDuration
(REST).
This provides the remaining driving duration from the driver app's latest
known location rather than the driving time from the previous stop.
202 203 204 205 |
# File 'proto_docs/google/maps/fleetengine/delivery/v1/delivery_vehicles.rb', line 202 class VehicleJourneySegment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#path ⇒ ::Array<::Google::Type::LatLng> (readonly)
Returns Output only. The path from the previous stop to this stop. If the current
stop is the first stop in the list of journey segments, then this is the
path from the vehicle's current location to this stop at the time that the
stop was added to the list. This field might not be present if this journey
segment is part of JourneySharingInfo
.
If this field is defined in the path
Task.journey_sharing_info.remaining_vehicle_journey_segments[0].path
(gRPC) or Task.journeySharingInfo.remainingVehicleJourneySegments[0].path
(REST), then it may be populated with the LatLng
s decoded from
DeliveryVehicle.current_route_segment
(gRPC) or
DeliveryVehicle.currentRouteSegment
(REST). This provides the driving
path from the driver app's latest known location rather than the path from
the previous stop.
202 203 204 205 |
# File 'proto_docs/google/maps/fleetengine/delivery/v1/delivery_vehicles.rb', line 202 class VehicleJourneySegment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#stop ⇒ ::Google::Maps::FleetEngine::Delivery::V1::VehicleStop
Returns Specifies the stop location, along with the Task
s associated with
the stop. Some fields of the VehicleStop might not be present if this
journey segment is part of JourneySharingInfo
.
202 203 204 205 |
# File 'proto_docs/google/maps/fleetengine/delivery/v1/delivery_vehicles.rb', line 202 class VehicleJourneySegment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |