Cloud Optimization v1 API - Class RouteModifiers (2.6.0)

public sealed class RouteModifiers : IMessage<RouteModifiers>, IEquatable<RouteModifiers>, IDeepCloneable<RouteModifiers>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Optimization v1 API class RouteModifiers.

Encapsulates a set of optional conditions to satisfy when calculating vehicle routes. This is similar to RouteModifiers in the Google Maps Platform API; see: https://developers.google.com/maps/documentation/routes/reference/rest/v2/RouteModifiers.

Inheritance

object > RouteModifiers

Namespace

Google.Cloud.Optimization.V1

Assembly

Google.Cloud.Optimization.V1.dll

Constructors

RouteModifiers()

public RouteModifiers()

RouteModifiers(RouteModifiers)

public RouteModifiers(RouteModifiers other)
Parameter
Name Description
other RouteModifiers

Properties

AvoidFerries

public bool AvoidFerries { get; set; }

Specifies whether to avoid ferries where reasonable. Preference will be given to routes not containing travel by ferries. Applies only to motorized travel modes.

Property Value
Type Description
bool

AvoidHighways

public bool AvoidHighways { get; set; }

Specifies whether to avoid highways where reasonable. Preference will be given to routes not containing highways. Applies only to motorized travel modes.

Property Value
Type Description
bool

AvoidIndoor

public bool AvoidIndoor { get; set; }

Optional. Specifies whether to avoid navigating indoors where reasonable. Preference will be given to routes not containing indoor navigation. Applies only to the WALKING travel mode.

Property Value
Type Description
bool

AvoidTolls

public bool AvoidTolls { get; set; }

Specifies whether to avoid toll roads where reasonable. Preference will be given to routes not containing toll roads. Applies only to motorized travel modes.

Property Value
Type Description
bool