# RoutingInfo

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/car/app/navigation/model/RoutingInfo "View this page in Java")

<br />

```
@CarProtocol
class RoutingInfo : NavigationTemplate.NavigationInfo
```

<br />

*** ** * ** ***

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

## Summary

|                                                                                                                       ### Nested types                                                                                                                       |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[RoutingInfo.Builder](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/RoutingInfo.Builder) A builder of[RoutingInfo](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/RoutingInfo). |

|                                       ### Public functions                                       |
|--------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)              | [equals](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/RoutingInfo#equals(java.lang.Object))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |
| [Distance](https://developer.android.com/reference/kotlin/androidx/car/app/model/Distance)`?`    | [getCurrentDistance](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/RoutingInfo#getCurrentDistance())`()` Returns the current distance to display to the user or`null`if not set.      |
| [Step](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/Step)`?` | [getCurrentStep](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/RoutingInfo#getCurrentStep())`()` Returns the current step to display to the user or`null`if not set.                  |
| [CarIcon](https://developer.android.com/reference/kotlin/androidx/car/app/model/CarIcon)`?`      | [getJunctionImage](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/RoutingInfo#getJunctionImage())`()` Returns an image for a junction of the maneuver or`null`if not set.              |
| [Step](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/Step)`?` | [getNextStep](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/RoutingInfo#getNextStep())`()`                                                                                            |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                      | [hashCode](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/RoutingInfo#hashCode())`()`                                                                                                  |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)              | [isLoading](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/RoutingInfo#isLoading())`()` Returns whether the routing info is in a loading state.                                        |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                | [toString](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/RoutingInfo#toString())`()`                                                                                                  |

## Public functions

### equals

```
fun equals(other: Any?): Boolean
```  

### getCurrentDistance

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

```
fun getCurrentDistance(): Distance?
```

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

|                                                                                                   See also                                                                                                    |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [setCurrentStep](https://developer.android.com/reference/kotlin/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)  

```
fun getCurrentStep(): Step?
```

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

|                                                                                                   See also                                                                                                    |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [setCurrentStep](https://developer.android.com/reference/kotlin/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)  

```
fun getJunctionImage(): CarIcon?
```

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

|                                                                                 See also                                                                                  |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [setJunctionImage](https://developer.android.com/reference/kotlin/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)  

```
fun getNextStep(): Step?
```  

### hashCode

```
fun hashCode(): Int
```  

### isLoading

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

```
fun isLoading(): Boolean
```

Returns whether the routing info is in a loading state.  

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

### toString

```
fun toString(): String
```