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.
TransitOptions
'BUS'
google.maps.TransitMode.BUS
Access by calling const {TransitMode} = await google.maps.importLibrary("routes"). See https://developers.google.com/maps/documentation/javascript/libraries.
const {TransitMode} = await google.maps.importLibrary("routes")
Specifies bus as a preferred mode of transit.
Specifies rail as a preferred mode of transit.
Specifies subway as a preferred mode of transit.
Specifies train as a preferred mode of transit.
Specifies tram as a preferred mode of transit.
Generated using TypeDoc
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'
orgoogle.maps.TransitMode.BUS
.Access by calling
const {TransitMode} = await google.maps.importLibrary("routes")
. See https://developers.google.com/maps/documentation/javascript/libraries.