The valid travel modes that can be specified in a DirectionsRequest as well as the travel modes returned in a DirectionsStep. Specify these by value, or by using the constant's name. For example, 'BICYCLING' or google.maps.TravelMode.BICYCLING.
DirectionsRequest
DirectionsStep
'BICYCLING'
google.maps.TravelMode.BICYCLING
Access by calling const {TravelMode} = await google.maps.importLibrary("routes"). See https://developers.google.com/maps/documentation/javascript/libraries.
const {TravelMode} = await google.maps.importLibrary("routes")
Specifies a bicycling directions request.
Specifies a driving directions request.
Specifies a transit directions request.
Specifies a walking directions request.
Generated using TypeDoc
The valid travel modes that can be specified in a
DirectionsRequest
as well as the travel modes returned in aDirectionsStep
. Specify these by value, or by using the constant's name. For example,'BICYCLING'
orgoogle.maps.TravelMode.BICYCLING
.Access by calling
const {TravelMode} = await google.maps.importLibrary("routes")
. See https://developers.google.com/maps/documentation/javascript/libraries.