Show / Hide Table of Contents

Class RouteModifiers

Encapsulates a set of optional conditions to satisfy when calculating the routes.

Inheritance
object
RouteModifiers
Implements
IMessage<RouteModifiers>
IEquatable<RouteModifiers>
IDeepCloneable<RouteModifiers>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Maps.Routing.V2
Assembly: Google.Maps.Routing.V2.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

When set to true, avoids ferries where reasonable, giving preference to routes not containing ferries. Applies only to the DRIVE andTWO_WHEELER [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].

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

AvoidHighways

When set to true, avoids highways where reasonable, giving preference to routes not containing highways. Applies only to the DRIVE and TWO_WHEELER [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].

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

AvoidIndoor

When set to true, avoids navigating indoors where reasonable, giving preference to routes not containing indoor navigation. Applies only to the WALK [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].

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

AvoidTolls

When set to true, avoids toll roads where reasonable, giving preference to routes not containing toll roads. Applies only to the DRIVE and TWO_WHEELER [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].

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

TollPasses

Encapsulates information about toll passes. If toll passes are provided, the API tries to return the pass price. If toll passes are not provided, the API treats the toll pass as unknown and tries to return the cash price. Applies only to the DRIVE and TWO_WHEELER [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].

Declaration
public RepeatedField<TollPass> TollPasses { get; }
Property Value
Type Description
RepeatedField<TollPass>

VehicleInfo

Specifies the vehicle information.

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