Reference documentation and code samples for the Google Maps FleetEngine V1 Client class TripWaypoint.
Describes a stopping point on a vehicle's route or an ending point on a vehicle's trip.
Generated from protobuf message maps.fleetengine.v1.TripWaypoint
Namespace
Google \ Maps \ FleetEngine \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ location
↳ trip_id
string
The trip associated with this waypoint.
↳ waypoint_type
int
The role this waypoint plays in this trip, such as pickup or dropoff.
↳ path_to_waypoint
array< Google\Type\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.
↳ encoded_path_to_waypoint
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.
↳ traffic_to_waypoint
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.
↳ distance_meters
Google\Protobuf\Int32Value
The path distance from the previous waypoint to the current waypoint. Undefined for the first waypoint in a list.
↳ eta
Google\Protobuf\Timestamp
The estimated time of arrival at this waypoint. Undefined for the first waypoint in a list.
↳ duration
Google\Protobuf\Duration
The travel time from previous waypoint to this point. Undefined for the first waypoint in a list.
getLocation
The location of this waypoint.
hasLocation
clearLocation
setLocation
The location of this waypoint.
$this
getTripId
The trip associated with this waypoint.
string
setTripId
The trip associated with this waypoint.
var
string
$this
getWaypointType
The role this waypoint plays in this trip, such as pickup or dropoff.
int
setWaypointType
The role this waypoint plays in this trip, such as pickup or dropoff.
var
int
$this
getPathToWaypoint
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.
setPathToWaypoint
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.
$this
getEncodedPathToWaypoint
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.
string
setEncodedPathToWaypoint
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.
var
string
$this
getTrafficToWaypoint
The traffic conditions along the path to this waypoint. Note that traffic is only available for Google Map Platform Rides and Deliveries Solution customers.
hasTrafficToWaypoint
clearTrafficToWaypoint
setTrafficToWaypoint
The traffic conditions along the path to this waypoint. Note that traffic is only available for Google Map Platform Rides and Deliveries Solution customers.
$this
getDistanceMeters
The path distance from the previous waypoint to the current waypoint.
Undefined for the first waypoint in a list.
hasDistanceMeters
clearDistanceMeters
getDistanceMetersUnwrapped
Returns the unboxed value from getDistanceMeters()
The path distance from the previous waypoint to the current waypoint. Undefined for the first waypoint in a list.
int|null
setDistanceMeters
The path distance from the previous waypoint to the current waypoint.
Undefined for the first waypoint in a list.
$this
setDistanceMetersUnwrapped
Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object.
The path distance from the previous waypoint to the current waypoint. Undefined for the first waypoint in a list.
var
int|null
$this
getEta
The estimated time of arrival at this waypoint. Undefined for the first waypoint in a list.
hasEta
clearEta
setEta
The estimated time of arrival at this waypoint. Undefined for the first waypoint in a list.
$this
getDuration
The travel time from previous waypoint to this point. Undefined for the first waypoint in a list.
hasDuration
clearDuration
setDuration
The travel time from previous waypoint to this point. Undefined for the first waypoint in a list.
$this