# RoutingInfo

Artifact: [androidx.car.app:app](https://developer.android.com/jetpack/androidx/releases/car-app) [View Source](https://cs.android.com/search?q=file:androidx/car/app/navigation/model/RoutingInfo.java+class:androidx.car.app.navigation.model.RoutingInfo) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.0.0)

*** ** * ** ***


```
@CarProtocol
public final class RoutingInfo implements NavigationTemplate.NavigationInfo
```

<br />

*** ** * ** ***

Represents routing information that can be shown in the `https://developer.android.com/reference/androidx/car/app/navigation/model/NavigationTemplate` during navigation

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/car/app/navigation/model/RoutingInfo.Builder` A builder of `https://developer.android.com/reference/androidx/car/app/navigation/model/RoutingInfo`. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/car/app/navigation/model/RoutingInfo#equals(java.lang.Object)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/Object.html other)` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/car/app/model/Distance` | `https://developer.android.com/reference/androidx/car/app/navigation/model/RoutingInfo#getCurrentDistance()()` Returns the current distance to display to the user or `null` if not set. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/car/app/navigation/model/Step` | `https://developer.android.com/reference/androidx/car/app/navigation/model/RoutingInfo#getCurrentStep()()` Returns the current step to display to the user or `null` if not set. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/car/app/model/CarIcon` | `https://developer.android.com/reference/androidx/car/app/navigation/model/RoutingInfo#getJunctionImage()()` Returns an image for a junction of the maneuver or `null` if not set. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/car/app/navigation/model/Step` | `https://developer.android.com/reference/androidx/car/app/navigation/model/RoutingInfo#getNextStep()()` |
| `int` | `https://developer.android.com/reference/androidx/car/app/navigation/model/RoutingInfo#hashCode()()` |
| `boolean` | `https://developer.android.com/reference/androidx/car/app/navigation/model/RoutingInfo#isLoading()()` Returns whether the routing info is in a loading state. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/car/app/navigation/model/RoutingInfo#toString()()` |

## Public methods

### equals

```
public boolean equals(@Nullable Object other)
```

### getCurrentDistance

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.0.0)

```
public @Nullable Distance getCurrentDistance()
```

Returns the current distance to display to the user or `null` if not set.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/car/app/navigation/model/RoutingInfo.Builder#setCurrentStep(androidx.car.app.navigation.model.Step,androidx.car.app.model.Distance)` |   |

### getCurrentStep

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.0.0)

```
public @Nullable Step getCurrentStep()
```

Returns the current step to display to the user or `null` if not set.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/car/app/navigation/model/RoutingInfo.Builder#setCurrentStep(androidx.car.app.navigation.model.Step,androidx.car.app.model.Distance)` |   |

### getJunctionImage

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.0.0)

```
public @Nullable CarIcon getJunctionImage()
```

Returns an image for a junction of the maneuver or `null` if not set.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/car/app/navigation/model/RoutingInfo.Builder#setJunctionImage(androidx.car.app.model.CarIcon)` |   |

### getNextStep

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.0.0)

```
public @Nullable Step getNextStep()
```

### hashCode

```
public int hashCode()
```

### isLoading

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.0.0)

```
public boolean isLoading()
```

Returns whether the routing info is in a loading state.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/car/app/navigation/model/RoutingInfo.Builder#setLoading(boolean)` |   |

### toString

```
public @NonNull String toString()
```