google-maps-documentation

TransitMode constants

google.maps.TransitMode constants

The valid transit mode e.g. bus that can be specified in a TransitOptions. Specify these by value, or by using the constant's name. For example, 'BUS' or google.maps.TransitMode.BUS.

Constants
BUS Specifies bus as a preferred mode of transit.
RAIL Specifies rail as a preferred mode of transit.
SUBWAY Specifies subway as a preferred mode of transit.
TRAIN Specifies train as a preferred mode of transit.
TRAM Specifies tram as a preferred mode of transit.