Class VehicleMatch
Contains the vehicle and related estimates for a vehicle that match the
points of active trips for the vehicle SearchVehiclesRequest.
Implements
Namespace: Google.Maps.FleetEngine.V1
Assembly: Google.Maps.FleetEngine.V1.dll
Syntax
public sealed class VehicleMatch : IMessage<VehicleMatch>, IEquatable<VehicleMatch>, IDeepCloneable<VehicleMatch>, IBufferMessage, IMessage
Constructors
VehicleMatch()
Declaration
public VehicleMatch()
VehicleMatch(VehicleMatch)
Declaration
public VehicleMatch(VehicleMatch other)
Parameters
| Type | Name | Description |
|---|---|---|
| VehicleMatch | other |
Properties
OrderedBy
The order requested for sorting vehicle matches. Equivalent to
requested_ordered_by.
Declaration
public SearchVehiclesRequest.Types.VehicleMatchOrder OrderedBy { get; set; }
Property Value
| Type | Description |
|---|---|
| SearchVehiclesRequest.Types.VehicleMatchOrder |
RequestedOrderedBy
The order requested for sorting vehicle matches. Equivalent to
ordered_by.
Declaration
public SearchVehiclesRequest.Types.VehicleMatchOrder RequestedOrderedBy { get; set; }
Property Value
| Type | Description |
|---|---|
| SearchVehiclesRequest.Types.VehicleMatchOrder |
TripType
Required. The trip type of the request that was used to calculate the ETA to the pickup point.
Declaration
public TripType TripType { get; set; }
Property Value
| Type | Description |
|---|---|
| TripType |
Vehicle
Required. A vehicle that matches the request.
Declaration
public Vehicle Vehicle { get; set; }
Property Value
| Type | Description |
|---|---|
| Vehicle |
VehicleDropoffEta
The complete vehicle's driving ETA to the drop off point specified in the
request. The ETA includes stopping at any waypoints before the
dropoff_point specified in the request. The value will only be populated
when a drop off point is specified in the request. An empty value indicates
an error calculating the ETA.
Declaration
public Timestamp VehicleDropoffEta { get; set; }
Property Value
| Type | Description |
|---|---|
| Timestamp |
VehicleMatchType
Type of the vehicle match.
Declaration
public VehicleMatch.Types.VehicleMatchType VehicleMatchType { get; set; }
Property Value
| Type | Description |
|---|---|
| VehicleMatch.Types.VehicleMatchType |
VehiclePickupDistanceMeters
The distance from the Vehicle's current location to the pickup point specified in the request, including any intermediate pickup or dropoff points for existing trips. This distance comprises the calculated driving (route) distance, plus the straight line distance between the navigation end point and the requested pickup point. (The distance between the navigation end point and the requested pickup point is typically small.) An empty value indicates an error in calculating the distance.
Declaration
public int? VehiclePickupDistanceMeters { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
VehiclePickupEta
The vehicle's driving ETA to the pickup point specified in the
request. An empty value indicates a failure in calculating ETA for the
vehicle. If SearchVehiclesRequest.include_back_to_back was true and
this vehicle has an active trip, vehicle_pickup_eta includes the time
required to complete the current active trip.
Declaration
public Timestamp VehiclePickupEta { get; set; }
Property Value
| Type | Description |
|---|---|
| Timestamp |
VehiclePickupStraightLineDistanceMeters
Required. The straight-line distance between the vehicle and the pickup point specified in the request.
Declaration
public int? VehiclePickupStraightLineDistanceMeters { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
VehiclePickupToDropoffDistanceMeters
The vehicle's driving distance (in meters) from the pickup point
to the drop off point specified in the request. The distance is only
between the two points and does not include the vehicle location or any
other points that must be visited before the vehicle visits either the
pickup point or dropoff point. The value will only be populated when a
dropoff_point is specified in the request. An empty value indicates
a failure in calculating the distance from the pickup to
drop off point specified in the request.
Declaration
public int? VehiclePickupToDropoffDistanceMeters { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
VehicleTripsWaypoints
The ordered list of waypoints used to calculate the ETA. The list includes vehicle location, the pickup points of active trips for the vehicle, and the pickup points provided in the request. An empty list indicates a failure in calculating ETA for the vehicle.
Declaration
public RepeatedField<Waypoint> VehicleTripsWaypoints { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<Waypoint> |