Navigation SDK is currently available only to select customers.
Contact sales to learn more.
New map styling is coming soon to Google Maps Platform. This update to map styling includes a new default color palette and improvements to map experiences and usability. All map styles will be automatically updated in March 2025. For more information on availability and how to opt in earlier, see
New map style for Google Maps Platform .
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-08-15 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{
"last_modified": "Last updated 2024-08-15 UTC.",
"state": ""
}