TransitMode class
Specifies one or more preferred modes of transit. This parameter may only be specified for transit directions. The parameter supports the following arguments:
bus
indicates that the calculated route should prefer travel by bus.subway
indicates that the calculated route should prefer travel by subway.train
indicates that the calculated route should prefer travel by train.tram
indicates that the calculated route should prefer travel by tram and light rail.rail
indicates that the calculated route should prefer travel by train, tram, light rail, and subway. This is equivalent totransitMode=train|tram|subway
.
Constructors
- TransitMode(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<
TransitMode> -
final
Constants
- bus → const TransitMode
- Indicates that the calculated route should prefer travel by bus.
- rail → const TransitMode
- Indicates that the calculated route should prefer travel by bus.
- subway → const TransitMode
- Indicates that the calculated route should prefer travel by bus.
- train → const TransitMode
- Indicates that the calculated route should prefer travel by bus.
- tram → const TransitMode
- Indicates that the calculated route should prefer travel by bus.