The valid transit route type that can be specified in a TransitOptions. Specify these by value, or by using the constant's name. For example, 'LESS_WALKING' or google.maps.TransitRoutePreference.LESS_WALKING.
TransitOptions
'LESS_WALKING'
google.maps.TransitRoutePreference.LESS_WALKING
Access by calling const {TransitRoutePreference} = await google.maps.importLibrary("routes"). See https://developers.google.com/maps/documentation/javascript/libraries.
const {TransitRoutePreference} = await google.maps.importLibrary("routes")
Specifies that the calculated route should prefer a limited number of transfers.
Specifies that the calculated route should prefer limited amounts of walking.
Generated using TypeDoc
The valid transit route type that can be specified in a
TransitOptions
. Specify these by value, or by using the constant's name. For example,'LESS_WALKING'
orgoogle.maps.TransitRoutePreference.LESS_WALKING
.Access by calling
const {TransitRoutePreference} = await google.maps.importLibrary("routes")
. See https://developers.google.com/maps/documentation/javascript/libraries.