TransitRoutingPreference class

Specifies preferences for transit routes. Using this parameter, you can bias the options returned, rather than accepting the default best route chosen by the API. This parameter may only be specified for transit directions. The parameter supports the following arguments:

  • lessWalking indicates that the calculated route should prefer limited amounts of walking.
  • fewerTransfers indicates that the calculated route should prefer a limited number of transfers.

Constructors

TransitRoutingPreference(String _name)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

values List<TransitRoutingPreference>
final

Constants

fewerTransfers → const TransitRoutingPreference
Indicates that the calculated route should prefer a limited number of transfers
lessWalking → const TransitRoutingPreference
Indicates that the calculated route should prefer limited amounts of walking.