Resource: Trip
Trip metadata.
JSON representation |
---|
{ "name": string, "vehicleId": string, "tripStatus": enum ( |
Fields | |
---|---|
name |
Output only. In the format "providers/{provider}/trips/{trip}" |
vehicle |
ID of the vehicle making this trip. |
trip |
Current status of the trip. |
trip |
The type of the trip. |
pickup |
Location where customer indicates they will be picked up. |
actual |
Input only. The actual location when and where customer was picked up. This field is for provider to provide feedback on actual pickup information. |
actual |
Input only. The actual time and location of the driver arrival at the pickup point. This field is for provider to provide feedback on actual arrival information at the pickup point. |
pickup |
Output only. Either the estimated future time when the rider(s) will be picked up, or the actual time when they were picked up. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
intermediate |
Intermediate stops in order that the trip requests (in addition to pickup and dropoff). Initially this will not be supported for shared trips. |
intermediate |
Indicates the last time the A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
intermediate |
When |
actual |
Input only. The actual time and location of the driver's arrival at an intermediate destination. This field is for provider to provide feedback on actual arrival information at intermediate destinations. |
actual |
Input only. The actual time and location when and where the customer was picked up from an intermediate destination. This field is for provider to provide feedback on actual pickup information at intermediate destinations. |
dropoff |
Location where customer indicates they will be dropped off. |
actual |
Input only. The actual time and location when and where customer was dropped off. This field is for provider to provide feedback on actual dropoff information. |
dropoff |
Output only. Either the estimated future time when the rider(s) will be dropped off at the final destination, or the actual time when they were dropped off. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
remaining |
Output only. The full path from the current location to the dropoff point, inclusive. This path could include waypoints from other trips. |
vehicle |
This field supports manual ordering of the waypoints for the trip. It contains all of the remaining waypoints for the assigned vehicle, as well as the pickup and drop-off waypoints for this trip. If the trip hasn't been assigned to a vehicle, then Fleet Engine ignores this field. For privacy reasons, this field is only populated by the server on |
route[] |
Output only. Anticipated route for this trip to the first entry in remainingWaypoints. Note that the first waypoint may belong to a different trip. |
current |
Output only. An encoded path to the next waypoint. Note: This field is intended only for use by the Driver SDK and Consumer SDK. Decoding is not yet supported. |
current |
Output only. Indicates the last time the route was modified. Note: This field is intended only for use by the Driver SDK and Consumer SDK. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
current |
Output only. Indicates the traffic conditions along the Note: This field is intended only for use by the Driver SDK and Consumer SDK. |
current |
Output only. Indicates the last time the Note: This field is intended only for use by the Driver SDK and Consumer SDK. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
current |
Output only. The waypoint where |
remaining |
Output only. The remaining driving distance in the |
eta |
Output only. The ETA to the next waypoint (the first entry in the A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
remaining |
Output only. The duration from when the Trip data is returned to the time in A duration in seconds with up to nine fractional digits, ending with ' |
remaining |
Output only. Indicates the last time that A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
remaining |
Output only. Indicates the last time the A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
number |
Immutable. Indicates the number of passengers on this trip and does not include the driver. A vehicle must have available capacity to be returned in a |
last |
Output only. Indicates the last reported location of the vehicle along the route. |
last |
Output only. Indicates whether the vehicle's |
view |
The subset of Trip fields that are populated and how they should be interpreted. |
TripStatus
The status of a trip indicating its progression.
Enums | |
---|---|
UNKNOWN_TRIP_STATUS |
Default, used for unspecified or unrecognized trip status. |
NEW |
Newly created trip. |
ENROUTE_TO_PICKUP |
The driver is on their way to the pickup point. |
ARRIVED_AT_PICKUP |
The driver has arrived at the pickup point. |
ARRIVED_AT_INTERMEDIATE_DESTINATION |
The driver has arrived at an intermediate destination and is waiting for the rider. |
ENROUTE_TO_INTERMEDIATE_DESTINATION |
The driver is on their way to an intermediate destination (not the dropoff point). |
ENROUTE_TO_DROPOFF |
The driver has picked up the rider and is on their way to the next destination. |
COMPLETE |
The rider has been dropped off and the trip is complete. |
CANCELED |
The trip was canceled prior to pickup by the driver, rider, or rideshare provider. |
StopLocation
The actual location where a stop (pickup/dropoff) happened.
JSON representation |
---|
{
"point": {
object ( |
Fields | |
---|---|
point |
Required. Denotes the actual location. |
timestamp |
Indicates when the stop happened. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
stopTime |
Input only. Deprecated. Use the timestamp field. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
TripView
Selector for different sets of Trip fields in a trips.get
response. See AIP-157 for context. Additional views are likely to be added.
Enums | |
---|---|
TRIP_VIEW_UNSPECIFIED |
The default value. For backwards-compatibility, the API will default to an SDK view. To ensure stability and support, customers are advised to select a TripView other than SDK . |
SDK |
Includes fields that may not be interpretable or supportable using publicly available libraries. |
JOURNEY_SHARING_V1S |
Trip fields are populated for the Journey Sharing use case. This view is intended for server-to-server communications. |
Methods |
|
---|---|
|
Creates a trip in the Fleet Engine and returns the new trip. |
|
Get information about a single trip. |
|
Get all the trips for a specific vehicle. |
|
Updates trip data. |