AI-generated Key Takeaways
-
VehicleJourneySegment
represents a Vehicle's travel from a previous stop to the current one, including distance, duration, and path. -
VehicleStop
describes a location where a Vehicle stops to perform tasks, specifying the location, tasks, and stop state. -
TaskInfo
provides additional details about a task at a stop, such as the task ID, duration, and target completion timeframe. -
State
indicates the current status of aVehicleStop
, such asNEW
,ENROUTE
, orARRIVED
.
Represents a Vehicle’s travel segment - from its previous stop to the current stop. If it is the first active stop, then it is from the Vehicle’s current location to this stop.
JSON representation |
---|
{ "stop": { object ( |
Fields | |
---|---|
stop |
Specifies the stop location, along with the |
drivingDistanceMeters |
Output only. The travel distance from the previous stop to this stop. If the current stop is the first stop in the list of journey segments, then the starting point is the vehicle's location recorded at the time that this stop was added to the list. This field might not be present if this journey segment is part of |
drivingDuration |
Output only. The travel time from the previous stop to this stop. If the current stop is the first stop in the list of journey segments, then the starting point is the Vehicle's location recorded at the time that this stop was added to the list. If this field is defined in the path A duration in seconds with up to nine fractional digits, ending with ' |
path[] |
Output only. The path from the previous stop to this stop. If the current stop is the first stop in the list of journey segments, then this is the path from the vehicle's current location to this stop at the time that the stop was added to the list. This field might not be present if this journey segment is part of If this field is defined in the path |
VehicleStop
Describes a point where a Vehicle stops to perform one or more Task
s.
JSON representation |
---|
{ "plannedLocation": { object ( |
Fields | |
---|---|
plannedLocation |
Required. The location of the stop. Note that the locations in the |
tasks[] |
The list of |
state |
The state of the |
TaskInfo
Additional information about the Task performed at this stop.
JSON representation |
---|
{
"taskId": string,
"taskDuration": string,
"targetTimeWindow": {
object ( |
Fields | |
---|---|
taskId |
The Task ID. This field won't be populated in the response of a
|
taskDuration |
Output only. The time required to perform the Task. A duration in seconds with up to nine fractional digits, ending with ' |
targetTimeWindow |
Output only. The time window during which the task should be completed. This is only set in the response to |
State
The current state of a VehicleStop
.
Enums | |
---|---|
STATE_UNSPECIFIED |
Unknown. |
NEW |
Created, but not actively routing. |
ENROUTE |
Assigned and actively routing. |
ARRIVED |
Arrived at stop. Assumes that when the Vehicle is routing to the next stop, that all previous stops have been completed. |