modes property

List<TransitMode> modes
getter/setter pair

This list is used to determine which transit modes should be used for route calculation, TransitRouteOptions.modeFilter specifies whether this list is an inclusion or an exclusion. For example, specifying subway and bus transit modes with the include filter, returns only subway and bus transit modes, and with the exclude filter, returns all the transit modes except subway and bus. When not set, all the supported transit modes are permitted. By default, this list is empty.

Implementation

List<TransitMode> modes;