Join us for our next
Google Maps Platform Developer Community Day in San Francisco in December!
Apply now to attend.
Send feedback
NavState
Stay organized with collections
Save and categorize content based on your preferences.
outlined_flag
NavState is an annotation in the Android SDK that indicates the current state of navigation.
The API is currently in beta and is subject to change without backward compatibility guarantee.
It defines four navigation states: ENROUTE, REROUTING, STOPPED, and UNKNOWN, each represented by an integer constant.
NavState provides information whether the user is actively navigating, rerouting, has stopped, or if there is an error or the state is unspecified.
Constant Summary
int
ENROUTE
Actively navigating.
int
REROUTING
Actively navigating but searching for a new route.
int
STOPPED
Navigation has ended.
int
UNKNOWN
Error or unspecified state.
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
ENROUTE
Actively navigating. Information about the upcoming maneuver step is available.
Constant Value:
1
public
static
final
int
REROUTING
Actively navigating but searching for a new route. The upcoming maneuver step is not yet
available.
Constant Value:
2
public
static
final
int
STOPPED
public
static
final
int
UNKNOWN
Error or unspecified state.
Constant Value:
0
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 2026-10-20 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 2026-10-20 UTC."],[],[]]