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.Places.V1
Assembly: Google.Maps.Places.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

Optional. When set to true, avoids ferries where reasonable, giving preference to routes not containing ferries. Applies only to the DRIVE and TWO_WHEELER [TravelMode][google.maps.places.v1.TravelMode].

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

AvoidHighways

Optional. When set to true, avoids highways where reasonable, giving preference to routes not containing highways. Applies only to the DRIVE and TWO_WHEELER [TravelMode][google.maps.places.v1.TravelMode].

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

AvoidIndoor

Optional. When set to true, avoids navigating indoors where reasonable, giving preference to routes not containing indoor navigation. Applies only to the WALK [TravelMode][google.maps.places.v1.TravelMode].

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

AvoidTolls

Optional. 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 [TravelMode][google.maps.places.v1.TravelMode].

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