Message published to Pub/Sub from Navigation Connect.
| JSON representation |
|---|
{ // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "createdTrip": { object ( |
| Fields | |
|---|---|
| The event payload. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: | |
createdTrip |
Represents a trip creation event. |
updatedTrip |
Represents a trip update event. |
| End of mutually exclusive fields. | |
Trip
A trip.
| JSON representation |
|---|
{ "name": string, "state": enum ( |
| Fields | |
|---|---|
name |
The resource name of the trip. Format: projects/{project_number}/trips/{trip_id}. |
state |
The Trip state. |
execution |
The latest data about the execution of the trip. This may not be set if the trip is in an error state. |
createTime |
Time according to the server when the trip was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Time at which the server received the latest trip update. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
TripExecution
Data about the execution of the trip.
| JSON representation |
|---|
{ "origin": { object ( |
| Fields | |
|---|---|
origin |
Origin of the trip which is generally the transporter's location at start of the NavConnect trip. |
destination |
The destination of the trip as reported by the mobile application. |
location |
The location signal representing the last known location of the transporter. This will be the road snapped location if available. |
remainingRoute |
The remaining route with associated traffic information in GeoJSON Each See https://datatracker.ietf.org/doc/html/rfc7946, sections 3.1.4, 3.2 and 3.3. |
lastRouteDeviation |
The most recent route deviation event captured during the trip. |
traveledDuration |
Time traveled thus far. A duration in seconds with up to nine fractional digits, ending with ' |
remainingDuration |
Time left on this trip as estimated by Google. A duration in seconds with up to nine fractional digits, ending with ' |
traveledDistanceMeters |
Distance traveled from the origin in meters. |
remainingDistanceMeters |
Distance remaining to the destination in meters. |
stopAddedInRoute |
Indicates whether any stops were added along the route. |
Stop
A stop in the trip where some task is to be performed.
| JSON representation |
|---|
{
"point": {
object ( |
| Fields | |
|---|---|
point |
The location of the stop as a lat/lng. |
RouteDeviation
Route deviation information.
| JSON representation |
|---|
{ "location": { object ( |
| Fields | |
|---|---|
location |
Location where the deviation occurred. |
source |
Source for the deviation trigger. |