TripWaypoint

Describes a stopping point on a vehicle's route or an ending point on a vehicle's trip.

JSON representation
{
  "location": {
    object (TerminalLocation)
  },
  "tripId": string,
  "waypointType": enum (WaypointType),
  "pathToWaypoint": [
    {
      object (LatLng)
    }
  ],
  "encodedPathToWaypoint": string,
  "trafficToWaypoint": {
    object (ConsumableTrafficPolyline)
  },
  "distanceMeters": integer,
  "eta": string,
  "duration": string
}
Fields
location

object (TerminalLocation)

The location of this waypoint.

tripId

string

The trip associated with this waypoint.

waypointType

enum (WaypointType)

The role this waypoint plays in this trip, such as pickup or dropoff.

pathToWaypoint[]

object (LatLng)

The path from the previous waypoint to the current waypoint. Undefined for the first waypoint in a list. This field is only populated when requested.

encodedPathToWaypoint

string

The encoded path from the previous waypoint to the current waypoint.

Note: This field is intended only for use by the Driver SDK and Consumer SDK. Decoding is not yet supported.

trafficToWaypoint

object (ConsumableTrafficPolyline)

The traffic conditions along the path to this waypoint. Note that traffic is only available for Google Map Platform Rides and Deliveries Solution customers.

distanceMeters

integer

The path distance from the previous waypoint to the current waypoint. Undefined for the first waypoint in a list.

eta

string (Timestamp format)

The estimated time of arrival at this waypoint. Undefined for the first waypoint in a list.

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".

duration

string (Duration format)

The travel time from previous waypoint to this point. Undefined for the first waypoint in a list.

A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".