Describes a stopping point on a vehicle's route or an ending point on a vehicle's trip.
JSON representation |
---|
{ "location": { object ( |
Fields | |
---|---|
location |
The location of this waypoint. |
tripId |
The trip associated with this waypoint. |
waypointType |
The role this waypoint plays in this trip, such as pickup or dropoff. |
pathToWaypoint[] |
The path from the previous waypoint to the current waypoint. If this is the first waypoint, the path is from the vehicle's current location to the waypoint. This field is only populated when requested. |
encodedPathToWaypoint |
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 |
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 |
The path distance from the previous waypoint to the current waypoint. If this is the first waypoint, the path distance is from the vehicle's current location to the waypoint. |
eta |
The estimated time of arrival at this waypoint. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
duration |
The travel time from previous waypoint to this waypoint. If this is the first waypoint, the travel time is from the vehicle's current location to the waypoint. A duration in seconds with up to nine fractional digits, ending with ' |