Google Cloud Optimization V1 Client - Class Waypoint (0.2.0)

Reference documentation and code samples for the Google Cloud Optimization V1 Client class Waypoint.

Encapsulates a waypoint. Waypoints mark arrival and departure locations of VisitRequests, and start and end locations of Vehicles.

Generated from protobuf message google.cloud.optimization.v1.Waypoint

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ location Google\Cloud\Optimization\V1\Location

A point specified using geographic coordinates, including an optional heading.

↳ place_id string

The POI Place ID associated with the waypoint.

↳ side_of_road bool

Indicates that the location of this waypoint is meant to have a preference for the vehicle to stop at a particular side of road. When you set this value, the route will pass through the location so that the vehicle can stop at the side of road that the location is biased towards from the center of the road. This option works only for the 'DRIVING' travel mode, and when the 'location_type' is set to 'location'.

getLocation

A point specified using geographic coordinates, including an optional heading.

Returns
TypeDescription
Google\Cloud\Optimization\V1\Location|null

hasLocation

setLocation

A point specified using geographic coordinates, including an optional heading.

Parameter
NameDescription
var Google\Cloud\Optimization\V1\Location
Returns
TypeDescription
$this

getPlaceId

The POI Place ID associated with the waypoint.

Returns
TypeDescription
string

hasPlaceId

setPlaceId

The POI Place ID associated with the waypoint.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSideOfRoad

Indicates that the location of this waypoint is meant to have a preference for the vehicle to stop at a particular side of road. When you set this value, the route will pass through the location so that the vehicle can stop at the side of road that the location is biased towards from the center of the road. This option works only for the 'DRIVING' travel mode, and when the 'location_type' is set to 'location'.

Returns
TypeDescription
bool

setSideOfRoad

Indicates that the location of this waypoint is meant to have a preference for the vehicle to stop at a particular side of road. When you set this value, the route will pass through the location so that the vehicle can stop at the side of road that the location is biased towards from the center of the road. This option works only for the 'DRIVING' travel mode, and when the 'location_type' is set to 'location'.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getLocationType

Returns
TypeDescription
string