Show / Hide Table of Contents

Class DeliveryVehicle

The DeliveryVehicle message. A delivery vehicle transports shipments from a depot to a delivery location, and from a pickup location to the depot. In some cases, delivery vehicles also transport shipments directly from the pickup location to the delivery location.

Note: gRPC and REST APIs use different field naming conventions. For example, the DeliveryVehicle.current_route_segment field in the gRPC API and the DeliveryVehicle.currentRouteSegment field in the REST API refer to the same field.

Inheritance
object
DeliveryVehicle
Implements
IMessage<DeliveryVehicle>
IEquatable<DeliveryVehicle>
IDeepCloneable<DeliveryVehicle>
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 DeliveryVehicle : IMessage<DeliveryVehicle>, IEquatable<DeliveryVehicle>, IDeepCloneable<DeliveryVehicle>, IBufferMessage, IMessage

Constructors

DeliveryVehicle()

Declaration
public DeliveryVehicle()

DeliveryVehicle(DeliveryVehicle)

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

Properties

Attributes

A list of custom Delivery Vehicle attributes. A Delivery Vehicle can have at most 100 attributes, and each attribute must have a unique key.

Declaration
public RepeatedField<DeliveryVehicleAttribute> Attributes { get; }
Property Value
Type Description
RepeatedField<DeliveryVehicleAttribute>

CurrentRouteSegment

The encoded polyline specifying the route that the navigation recommends taking to the next waypoint. Your driver app updates this when a stop is reached or passed, and when the navigation reroutes. These LatLngs are returned in Task.journey_sharing_info.remaining_vehicle_journey_segments[0].path (gRPC) or Task.journeySharingInfo.remainingVehicleJourneySegments[0].path (REST) for all active Tasks assigned to the Vehicle.

There are a few cases where this field might not be used to populate Task.journey_sharing_info.remaining_vehicle_journey_segments[0].path (gRPC) or Task.journeySharingInfo.remainingVehicleJourneySegments[0].path (REST):

  • The endpoint of the current_route_segment does not match DeliveryVehicle.remaining_vehicle_journey_segments[0].stop (gRPC) or DeliveryVehicle.remainingVehicleJourneySegments[0].stop (REST).

  • The driver app has not updated its location recently, so the last updated value for this field might be stale.

  • The driver app has recently updated its location, but the current_route_segment is stale, and points to a previous vehicle stop.

In these cases, Fleet Engine populates this field with a route from the most recently passed VehicleStop to the upcoming VehicleStop to ensure that the consumer of this field has the best available information on the current path of the Delivery Vehicle.

Declaration
public ByteString CurrentRouteSegment { get; set; }
Property Value
Type Description
ByteString

CurrentRouteSegmentEndPoint

The location where the current_route_segment ends. This is not currently populated by the driver app, but you can supply it on UpdateDeliveryVehicle calls. It is either the LatLng from the upcoming vehicle stop, or the last LatLng of the current_route_segment. Fleet Engine will then do its best to interpolate to an actual VehicleStop.

This field is ignored in UpdateDeliveryVehicle calls if the current_route_segment field is empty.

Declaration
public LatLng CurrentRouteSegmentEndPoint { get; set; }
Property Value
Type Description
LatLng

DeliveryVehicleName

DeliveryVehicleName-typed view over the Name resource name property.

Declaration
public DeliveryVehicleName DeliveryVehicleName { get; set; }
Property Value
Type Description
DeliveryVehicleName

LastLocation

The last reported location of the Delivery Vehicle.

Declaration
public DeliveryVehicleLocation LastLocation { get; set; }
Property Value
Type Description
DeliveryVehicleLocation

Name

The unique name of this Delivery Vehicle. The format is providers/{provider}/deliveryVehicles/{vehicle}.

Declaration
public string Name { get; set; }
Property Value
Type Description
string

NavigationStatus

The Delivery Vehicle's navigation status.

Declaration
public DeliveryVehicleNavigationStatus NavigationStatus { get; set; }
Property Value
Type Description
DeliveryVehicleNavigationStatus

PastLocations

Input only. Locations where this Delivery Vehicle has been in the past that haven't yet been reported to Fleet Engine. This is used in UpdateDeliveryVehicleRequest to record locations which were previously unable to be sent to the server. Typically this happens when the Delivery Vehicle does not have internet connectivity.

Declaration
public RepeatedField<DeliveryVehicleLocation> PastLocations { get; }
Property Value
Type Description
RepeatedField<DeliveryVehicleLocation>

RemainingDistanceMeters

The remaining driving distance for the current_route_segment. The Driver app typically provides this field, but there are some circumstances in which Fleet Engine will override the value sent by the app. For more information, see [DeliveryVehicle.current_route_segment][maps.fleetengine.delivery.v1.DeliveryVehicle.current_route_segment]. This field is returned in Task.remaining_vehicle_journey_segments[0].driving_distance_meters (gRPC) or Task.remainingVehicleJourneySegments[0].drivingDistanceMeters (REST) for all active Tasks assigned to the Delivery Vehicle.

Fleet Engine ignores this field in UpdateDeliveryVehicleRequest if the current_route_segment field is empty.

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

RemainingDuration

The remaining driving time for the current_route_segment. The Driver app typically provides this field, but there are some circumstances in which Fleet Engine will override the value sent by the app. For more information, see [DeliveryVehicle.current_route_segment][maps.fleetengine.delivery.v1.DeliveryVehicle.current_route_segment]. This field is returned in Task.remaining_vehicle_journey_segments[0].driving_duration (gRPC) or Task.remainingVehicleJourneySegments[0].drivingDuration (REST) for all active tasks assigned to the Delivery Vehicle.

Fleet Engine ignores this field in UpdateDeliveryVehicleRequest if the current_route_segment field is empty.

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

RemainingVehicleJourneySegments

The journey segments assigned to this Delivery Vehicle, starting from the Vehicle's most recently reported location. This field won't be populated in the response of ListDeliveryVehicles.

Declaration
public RepeatedField<VehicleJourneySegment> RemainingVehicleJourneySegments { get; }
Property Value
Type Description
RepeatedField<VehicleJourneySegment>

Type

The type of this delivery vehicle. If unset, this will default to AUTO.

Declaration
public DeliveryVehicle.Types.DeliveryVehicleType Type { get; set; }
Property Value
Type Description
DeliveryVehicle.Types.DeliveryVehicleType
In this article
Back to top Generated by DocFX