Class Waypoint
Encapsulates a waypoint. Waypoints mark arrival and departure locations of VisitRequests, and start and end locations of Vehicles.
Namespace: Google.Maps.RouteOptimization.V1
Assembly: Google.Maps.RouteOptimization.V1.dll
Syntax
public sealed class Waypoint : IMessage<Waypoint>, IEquatable<Waypoint>, IDeepCloneable<Waypoint>, IBufferMessage, IMessage
Constructors
Waypoint()
Declaration
public Waypoint()
Waypoint(Waypoint)
Declaration
public Waypoint(Waypoint other)
Parameters
| Type | Name | Description |
|---|---|---|
| Waypoint | other |
Properties
HasPlaceId
Gets whether the "place_id" field is set
Declaration
public bool HasPlaceId { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Location
A point specified using geographic coordinates, including an optional heading.
Declaration
public Location Location { get; set; }
Property Value
| Type | Description |
|---|---|
| Location |
LocationTypeCase
Declaration
public Waypoint.LocationTypeOneofCase LocationTypeCase { get; }
Property Value
| Type | Description |
|---|---|
| Waypoint.LocationTypeOneofCase |
PlaceId
The POI place ID associated with the waypoint.
When using a place ID to specify arrival or departure location of a VisitRequest, use a place ID that is specific enough to determine a LatLng location for navigation to the place. For example, a place ID representing a building is suitable, but a place ID representing a road is discouraged.
Declaration
public string PlaceId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SideOfRoad
Optional. 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 doesn't work for the 'WALKING' travel mode.
Declaration
public bool SideOfRoad { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
VehicleStopover
Indicates that the waypoint is meant for vehicles to stop at, where the intention is to either pick up or drop off. This option works only for the 'DRIVING' travel mode, and when the 'location_type' is 'location'.
Experimental: This field's behavior or existence may change in future.
Declaration
public bool VehicleStopover { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |