Class TransitPreferences
Preferences for TRANSIT
based routes that influence the route that is
returned.
Implements
Namespace: Google.Maps.Routing.V2
Assembly: Google.Maps.Routing.V2.dll
Syntax
public sealed class TransitPreferences : IMessage<TransitPreferences>, IEquatable<TransitPreferences>, IDeepCloneable<TransitPreferences>, IBufferMessage, IMessage
Constructors
TransitPreferences()
Declaration
public TransitPreferences()
TransitPreferences(TransitPreferences)
Declaration
public TransitPreferences(TransitPreferences other)
Parameters
Type | Name | Description |
---|---|---|
TransitPreferences | other |
Properties
AllowedTravelModes
A set of travel modes to use when getting a TRANSIT
route. Defaults to
all supported modes of travel.
Declaration
public RepeatedField<TransitPreferences.Types.TransitTravelMode> AllowedTravelModes { get; }
Property Value
Type | Description |
---|---|
RepeatedField<TransitPreferences.Types.TransitTravelMode> |
RoutingPreference
A routing preference that, when specified, influences the TRANSIT
route
returned.
Declaration
public TransitPreferences.Types.TransitRoutingPreference RoutingPreference { get; set; }
Property Value
Type | Description |
---|---|
TransitPreferences.Types.TransitRoutingPreference |