Show / Hide Table of Contents

Class RouteModifiers

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

Inheritance
object
RouteModifiers
Implements
IMessage<RouteModifiers>
IEquatable<RouteModifiers>
IDeepCloneable<RouteModifiers>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Maps.RouteOptimization.V1
Assembly: Google.Maps.RouteOptimization.V1.dll
Syntax
public sealed class RouteModifiers : IMessage<RouteModifiers>, IEquatable<RouteModifiers>, IDeepCloneable<RouteModifiers>, IBufferMessage, IMessage

Constructors

RouteModifiers()

Declaration
public RouteModifiers()

RouteModifiers(RouteModifiers)

Declaration
public RouteModifiers(RouteModifiers other)
Parameters
Type Name Description
RouteModifiers other

Properties

AvoidFerries

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

Declaration
public bool AvoidFerries { get; set; }
Property Value
Type Description
bool

AvoidHighways

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

Declaration
public bool AvoidHighways { get; set; }
Property Value
Type Description
bool

AvoidIndoor

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.

Declaration
public bool AvoidIndoor { get; set; }
Property Value
Type Description
bool

AvoidTolls

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

Declaration
public bool AvoidTolls { get; set; }
Property Value
Type Description
bool
In this article
Back to top Generated by DocFX