VehicleLog

The log of a Vehicle resource in Fleet Engine.

JSON representation
{
  "name": string,
  "state": enum (VehicleStateLog),
  "supportedTrips": [
    enum (TripTypeLog)
  ],
  "currentTrips": [
    string
  ],
  "lastLocation": {
    object (VehicleLocationLog)
  },
  "maximumCapacity": integer,
  "attributes": [
    {
      object (VehicleAttributeLog)
    }
  ],
  "vehicleType": {
    object (VehicleTypeLog)
  },
  "manualWaypointOrdering": boolean,
  "backToBackEnabled": boolean,
  "navStatus": enum (NavigationStatusLog),
  "remainingDistanceMeters": integer,
  "etaToFirstWaypoint": string,
  "remainingTimeSeconds": integer,
  "currentRouteSegmentEndPoint": {
    object (TripWaypointLog)
  },
  "deviceSettings": {
    object (DeviceSettingsLog)
  },
  "waypoints": [
    {
      object (TripWaypointLog)
    }
  ],
  "currentRouteSegmentTraffic": {
    object (TrafficPolylineDataLog)
  }
}
Fields
name

string

The vehicle resource name in the format of providers/{providerId}/vehicles/{vehicleId}.

state

enum (VehicleStateLog)

The vehicle state.

supportedTrips[]

enum (TripTypeLog)

Trip types supported by this vehicle.

currentTrips[]

string

List of tripId's for trips assigned to the vehicle.

lastLocation

object (VehicleLocationLog)

Last reported location of the vehicle.

maximumCapacity

integer

Maximum capacity of the vehicle. This is the total numbers of riders on trips this vehicle can contain. The driver is not considered in this value. This value must be greater than or equal to one.

attributes[]

object (VehicleAttributeLog)

List of vehicle service attributes.

vehicleType

object (VehicleTypeLog)

The vehicle type.

manualWaypointOrdering

boolean

If true, Fleet Engine will not reorder waypoints and provider must reorder them. Otherwise, when not supplied by provider, Fleet Engine will set waypoints to an optimal order.

backToBackEnabled

boolean

Indicates if the driver accepts back-to-back rides.

navStatus

enum (NavigationStatusLog)

The vehicle's navigation status.

remainingDistanceMeters

integer

The remaining driving distance for the currentRouteSegment. This value is also provided in Trip.remaining_distance_meters for all active trips assigned to the vehicle. The value is unspecified if the currentRouteSegment field is empty.

etaToFirstWaypoint

string (Timestamp format)

The ETA to the next waypoint that is the first entry in the Vehicle.waypoint field. The value is unspecified if the waypoints field is empty or the Vehicle.current_route_segment field is empty.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

remainingTimeSeconds

integer

The remaining driving time for the currentRouteSegment. The value is unspecified if the waypoints field is empty or the Vehicle.current_route_segment field is empty. This value should match etaToFirstWaypoint - current_time at the time the value was calculated.

currentRouteSegmentEndPoint

object (TripWaypointLog)

The waypoint where the currentRouteSegment ends.

deviceSettings

object (DeviceSettingsLog)

Information about settings in the mobile device being used by the driver.

waypoints[]

object (TripWaypointLog)

The remaining waypoints assigned to this vehicle.

currentRouteSegmentTraffic

object (TrafficPolylineDataLog)

Fleet Engine uses this information to improve its understanding of a trip, but does not populate the field in its responses.

DeviceSettingsLog

Information about various settings on the mobile device.

JSON representation
{
  "locationPowerSaveMode": enum (LocationPowerSaveModeLog),
  "isPowerSaveMode": boolean,
  "isInteractive": boolean,
  "batteryInfo": {
    object (BatteryInfoLog)
  }
}
Fields
locationPowerSaveMode

enum (LocationPowerSaveModeLog)

How location features are set to behave on the device when battery saver is on.

isPowerSaveMode

boolean

Whether the device is currently in power save mode.

isInteractive

boolean

Whether the device is in an interactive state.

batteryInfo

object (BatteryInfoLog)

Information about the battery state.

TrafficPolylineDataLog

Traffic conditions along the expected vehicle route.

JSON representation
{
  "trafficRendering": {
    object (VisualTrafficReportPolylineRenderingLog)
  }
}
Fields
trafficRendering

object (VisualTrafficReportPolylineRenderingLog)

A polyline rendering of traffic speed for all regions along one stretch of a customer ride.

VisualTrafficReportPolylineRenderingLog

Describes how clients should color one portion of the polyline along the route.

JSON representation
{
  "roadStretch": [
    {
      object (RoadStretchLog)
    }
  ]
}
Fields
roadStretch[]

object (RoadStretchLog)

Road stretches that should be rendered along the polyline. Note that the stretches are guaranteed to not overlap, and that they do not necessarily span the full route.

RoadStretchLog

One road stretch that should be rendered.

JSON representation
{
  "style": enum (Style),
  "offsetMeters": integer,
  "lengthMeters": integer
}
Fields
style

enum (Style)

The style to apply.

offsetMeters

integer

The style should be applied between [offsetMeters, offsetMeters + lengthMeters).

lengthMeters

integer

The length of the path where to apply the style.