Waypoint

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

JSON representation
{
  "sideOfRoad": boolean,

  // Union field location_type can be only one of the following:
  "location": {
    object (Location)
  },
  "placeId": string
  // End of list of possible types for union field location_type.
}
Fields
sideOfRoad

boolean

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 'locationType' is set to 'location'.

Union field location_type. Different ways to represent a location. location_type can be only one of the following:
location

object (Location)

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

placeId

string

The POI Place ID associated with the waypoint.

Location

Encapsulates a location (a geographic point, and an optional heading).

JSON representation
{
  "latLng": {
    object (LatLng)
  },
  "heading": integer
}
Fields
latLng

object (LatLng)

The waypoint's geographic coordinates.

heading

integer

The compass heading associated with the direction of the flow of traffic. This value is used to specify the side of the road to use for pickup and drop-off. Heading values can be from 0 to 360, where 0 specifies a heading of due North, 90 specifies a heading of due East, etc.