| Field | Description | |
|---|---|---|
| name | Trip name, must be unique | |
| vehicle_id | ID of the vehicle making this trip. | |
| trip_type | The type of the trip. | |
| UNKNOWN_TRIP_TYPE | Default, used for unspecified or unrecognized trip types. | |
| SHARED | The trip may share a vehicle with other trips. | |
| EXCLUSIVE | The trip is exclusive to a vehicle. | |
| trip_status | Current status of the trip. | |
| 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. | |
| pickup_point | Location where customer indicates they will be picked up. | |
| actual_pickup_point | The actual location when and where customer was picked up. This field is for provider to provide feedback on actual pickup information. | |
| actual_pickup_arrival_point | 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_time | Output only. Either the estimated future time when the rider(s) will be picked up, or the actual time when they were picked up. | |
| dropoff_point | Location where customer indicates they will be dropped off. | |
| actual_dropoff_point | 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_time | 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. | |
| Field | Description | |
|---|---|---|
| name | Task name, must be unique | |
| delivery_vehicle_id | The ID of the vehicle that is executing this Task. | |
| type | Required. Immutable. Defines the type of the Task. For example, a break or shipment. | |
| TYPE_UNSPECIFIED | Default, the Task type is unknown. | |
| PICKUP | A pickup Task is the action taken for picking up a shipment from a customer. Depot or feeder vehicle pickups should use the SCHEDULED_STOP type. | |
| DELIVERY | A delivery Task is the action taken for delivering a shipment to an end customer. Depot or feeder vehicle dropoffs should use the SCHEDULED_STOP type. | |
| SCHEDULED_STOP | A scheduled stop Task is used for planning purposes. For example, it could represent picking up or dropping off shipments from feeder vehicles or depots. It shouldn't be used for any shipments that are picked up or dropped off from an end customer. | |
| UNAVAILABLE | Newly created trip.A Task that means the Vehicle is not available for service. For example, this can happen when the driver takes a break, or when the vehicle is being refueled. | |
| state | Required. The current execution state of the Task. | |
| STATE_UNSPECIFIED | Default. Used for an unspecified or unrecognized Task state. | |
| OPEN | Either the Task has not yet been assigned to a delivery vehicle, or the delivery vehicle has not yet passed the Task's assigned vehicle stop. | |
| CLOSED | When the vehicle passes the vehicle stop for this Task. | |
| task_outcome | The outcome of the Task. | |
| TASK_OUTCOME_UNSPECIFIED | The Task outcome before its value is set. | |
| SUCCEEDED | The Task completed successfully. | |
| FAILED | Either the Task couldn't be completed, or it was cancelled. | |
| task_outcome_time | The timestamp that indicates when the Task's outcome was set by the provider. | |
| task_outcome_location | The location where the Task's outcome was set. This value is updated as part of UpdateTask. If this value isn't explicitly updated by the provider, then Fleet Engine populates it by default with the last known vehicle location (the raw location). | |
| tracking_id | Immutable. This field facilitates the storing of an ID so you can avoid using a complicated mapping. You cannot set tracking_id for Tasks of type UNAVAILABLE and SCHEDULED_STOP. These IDs are subject to the following restrictions: | |
| planned_location | The location where the Task will be completed. Optional for UNAVAILABLE Tasks, but required for all other Tasks. | |
| task_duration | Required. Immutable. The time needed to execute a Task at this location. | |
| target_time_window | The time window during which the task should be completed. | |
| attributes | A list of custom Task attributes. Each attribute must have a unique key. | |
Core GMP
Mobility

