Send feedback
RoutingOptions.TravelMode
Stay organized with collections
Save and categorize content based on your preferences.
Specifies the type of transportation used to tailor the directions. The default is DRIVING
.
Constant Summary
int
CYCLING
Provides directions based on travel for a bicycle.
int
DRIVING
Provides directions based on travel for a 4-wheeled, motorized vehicle.
int
TAXI
Provides directions on routes for a vehicle authorized to use taxi lanes.
int
TWO_WHEELER
Provides directions based on travel for 2-wheeled, motorized transport.
int
WALKING
Provides directions based on walking.
Inherited Method Summary
From interface
java.lang.annotation.Annotation
abstract
Class<? extends Annotation>
annotationType ()
abstract
boolean
equals (Object arg0)
abstract
int
hashCode ()
abstract
String
toString ()
Constants
public
static
final
int
CYCLING
Provides directions based on travel for a bicycle.
Constant Value:
1
public
static
final
int
DRIVING
Provides directions based on travel for a 4-wheeled, motorized vehicle. For example, a car or
truck.
Constant Value:
0
public
static
final
int
TAXI
Provides directions on routes for a vehicle authorized to use taxi lanes.
Constant Value:
4
public
static
final
int
TWO_WHEELER
Provides directions based on travel for 2-wheeled, motorized transport. For example, a
motorcycle or scooter.
Constant Value:
3
public
static
final
int
WALKING
Provides directions based on walking.
Constant Value:
2
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-03 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-03 UTC."],[],[]]