Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

Access by calling const {TransitMode} = await google.maps.importLibrary("routes"). See https://developers.google.com/maps/documentation/javascript/libraries.

Index

Enumeration Members

Enumeration Members

BUS: "BUS"

Specifies bus as a preferred mode of transit.

RAIL: "RAIL"

Specifies rail as a preferred mode of transit.

SUBWAY: "SUBWAY"

Specifies subway as a preferred mode of transit.

TRAIN: "TRAIN"

Specifies train as a preferred mode of transit.

TRAM: "TRAM"

Specifies tram as a preferred mode of transit.

Generated using TypeDoc