Show / Hide Table of Contents

Class VehicleJourneySegment

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.

Inheritance
object
VehicleJourneySegment
Implements
IMessage<VehicleJourneySegment>
IEquatable<VehicleJourneySegment>
IDeepCloneable<VehicleJourneySegment>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Maps.FleetEngine.Delivery.V1
Assembly: Google.Maps.FleetEngine.Delivery.V1.dll
Syntax
public sealed class VehicleJourneySegment : IMessage<VehicleJourneySegment>, IEquatable<VehicleJourneySegment>, IDeepCloneable<VehicleJourneySegment>, IBufferMessage, IMessage

Constructors

VehicleJourneySegment()

Declaration
public VehicleJourneySegment()

VehicleJourneySegment(VehicleJourneySegment)

Declaration
public VehicleJourneySegment(VehicleJourneySegment other)
Parameters
Type Name Description
VehicleJourneySegment other

Properties

DrivingDistanceMeters

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.

Declaration
public int? DrivingDistanceMeters { get; set; }
Property Value
Type Description
int?

DrivingDuration

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.

Declaration
public Duration DrivingDuration { get; set; }
Property Value
Type Description
Duration

Path

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 LatLngs 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.

Declaration
public RepeatedField<LatLng> Path { get; }
Property Value
Type Description
RepeatedField<LatLng>

Stop

Specifies the stop location, along with the Tasks associated with the stop. Some fields of the VehicleStop might not be present if this journey segment is part of JourneySharingInfo.

Declaration
public VehicleStop Stop { get; set; }
Property Value
Type Description
VehicleStop
In this article
Back to top Generated by DocFX