public class **NavInfo** extends Object  
<br />

> [!WARNING]
> [Preview](https://developers.google.com/maps/launch-stages#preview) feature

Contains information about the state of navigation, the current nav step if available, and
remaining steps if available.

### Nested Class Summary

|---|---|---|---|
| class | [NavInfo.Builder](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo.Builder) || Builder for NavInfo. |

### Public Method Summary

|---|---|
| static [NavInfo.Builder](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo.Builder) | [builder](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo#builder())() Returns a builder for NavInfo. |
| [StepInfo](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/StepInfo) | [getCurrentStep](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo#getCurrentStep())() Returns information about the upcoming maneuver step. |
| Integer | [getDistanceToCurrentStepMeters](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo#getDistanceToCurrentStepMeters())() Returns the estimated remaining distance in meters along the route to the current step. |
| Integer | [getDistanceToDestinationMeters](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo#getDistanceToDestinationMeters())() *This method is deprecated. This method is deprecated and will be removed in a future version of this library. Please use `https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo#getDistanceToFinalDestinationMeters()` instead.* |
| Integer | [getDistanceToFinalDestinationMeters](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo#getDistanceToFinalDestinationMeters())() Returns the estimated remaining distance in meters to the final destination which is the last destination in a multi-destination trip. |
| Integer | [getDistanceToNextDestinationMeters](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo#getDistanceToNextDestinationMeters())() Returns the estimated remaining distance in meters to the next destination. |
| int | [getNavState](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo#getNavState())() Returns the current state of navigation. |
| [StepInfo\[\]](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/StepInfo) | [getRemainingSteps](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo#getRemainingSteps())() Returns the remaining steps after the current step. |
| boolean | [getRouteChanged](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo#getRouteChanged())() Whether the route has changed since the last sent message. |
| Integer | [getTimeToCurrentStepSeconds](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo#getTimeToCurrentStepSeconds())() Returns the estimated remaining time in seconds along the route to the current step. |
| Integer | [getTimeToDestinationSeconds](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo#getTimeToDestinationSeconds())() *This method is deprecated. This method is deprecated and will be removed in a future version of this library. Please use `https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo#getTimeToFinalDestinationSeconds()` instead.* |
| Integer | [getTimeToFinalDestinationSeconds](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo#getTimeToFinalDestinationSeconds())() Returns the estimated remaining time in seconds to the final destination which is the last destination in a multi-destination trip. |
| Integer | [getTimeToNextDestinationSeconds](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo#getTimeToNextDestinationSeconds())() Returns the estimated remaining time in seconds to the next destination. |
| [NavInfo.Builder](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo.Builder) | [toBuilder](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo#toBuilder())() |

### Inherited Method Summary

From class java.lang.Object

|---|---|
| boolean | equals(Object arg0) |
| final Class\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| String | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

## Public Methods

#### public static [NavInfo.Builder](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo.Builder)
**builder**
()

Returns a builder for NavInfo.

##### Returns

- a builder for NavInfo.

#### public [StepInfo](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/StepInfo)
**getCurrentStep**
()

Returns information about the upcoming maneuver step. This is only set if the NavState is
ENROUTE and will be `null` otherwise.

##### Returns

- the upcoming maneuver step if set, otherwise `null`.

#### public Integer
**getDistanceToCurrentStepMeters**
()

Returns the estimated remaining distance in meters along the route to the current step.

##### Returns

- the estimated remaining distance in meters along the route to the current step if available, otherwise `null`.

#### public Integer
**getDistanceToDestinationMeters**
()


**This method is deprecated.**   
This method is deprecated and will be removed in a future version of this library.
Please use `https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo#getDistanceToFinalDestinationMeters()` instead.
Returns the estimated remaining distance in meters to the destination which is the last
destination in a multi-destination trip.

##### Returns

- the estimated remaining distance in meters to the destination which is the last destination in a multi-destination trip if available, otherwise `null`.

#### public Integer
**getDistanceToFinalDestinationMeters**
()

Returns the estimated remaining distance in meters to the final destination which is the last
destination in a multi-destination trip.

##### Returns

- the estimated remaining distance in meters to the final destination which is the last destination in a multi-destination trip if available, otherwise `null`.

#### public Integer
**getDistanceToNextDestinationMeters**
()

Returns the estimated remaining distance in meters to the next destination.

##### Returns

- the estimated remaining distance in meters to the next destination if available, otherwise `null`.

#### public int
**getNavState**
()

Returns the current state of navigation.

##### Returns

- the current state of navigation.

#### public [StepInfo\[\]](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/StepInfo)
**getRemainingSteps**
()

Returns the remaining steps after the current step.

##### Returns

- remaining steps after the current step.

#### public boolean
**getRouteChanged**
()

Whether the route has changed since the last sent message. A route change may be caused by a
reroute, the addition/removal of a waypoint, the user selecting or driving onto an alternate
route, or a traffic update.

##### Returns

- whether the route has changed since the last sent nav update.

#### public Integer
**getTimeToCurrentStepSeconds**
()

Returns the estimated remaining time in seconds along the route to the current step.

##### Returns

- the estimated remaining time in seconds along the route to the current step if available, otherwise `null`.

#### public Integer
**getTimeToDestinationSeconds**
()


**This method is deprecated.**   
This method is deprecated and will be removed in a future version of this library.
Please use `https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo#getTimeToFinalDestinationSeconds()` instead.
Returns the estimated remaining time in seconds to the destination.

##### Returns

- the estimated remaining time in seconds to the destination if available, otherwise `null`.

#### public Integer
**getTimeToFinalDestinationSeconds**
()

Returns the estimated remaining time in seconds to the final destination which is the last
destination in a multi-destination trip.

##### Returns

- the estimated remaining time in seconds to the final destination which is the last destination in a multi-destination trip if available, otherwise `null`.

#### public Integer
**getTimeToNextDestinationSeconds**
()

Returns the estimated remaining time in seconds to the next destination.

##### Returns

- the estimated remaining time in seconds to the next destination if available, otherwise `null`.

#### public [NavInfo.Builder](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo.Builder)
**toBuilder**
()

<br />