Destination

class Destination : VersionedParcelable
kotlin.Any
   ↳ androidx.car.cluster.navigation.Destination

Final or intermediate stop in a navigation route.

Summary

Nested classes

Builder for creating a Destination

Public methods
Int

String

Returns the destination address (formatted for the current user's locale), or empty if there is no address associated with this destination.

Location?

Returns the geo-location of this destination, or null if it was not provided or is unknown.

Boolean
equals(other: Any?)

String

Distance?

Returns the distance from the current position to this destination, or null if distance was not provided or is unknown.

String

Returns the name of the destination (formatted for the current user's locale), or empty if destination name is unknown.

ZonedDateTime?

Returns the estimated time of arrival to this destination, or null if it was not provided or is unknown.

Public methods

hashCode

fun hashCode(): Int

getAddress

@NonNull fun getAddress(): String

Returns the destination address (formatted for the current user's locale), or empty if there is no address associated with this destination.

getLocation

@Nullable fun getLocation(): Location?

Returns the geo-location of this destination, or null if it was not provided or is unknown.

equals

fun equals(other: Any?): Boolean

toString

fun toString(): String

getDistance

@Nullable fun getDistance(): Distance?

Returns the distance from the current position to this destination, or null if distance was not provided or is unknown.

getTitle

@NonNull fun getTitle(): String

Returns the name of the destination (formatted for the current user's locale), or empty if destination name is unknown.

getEta

@Nullable fun getEta(): ZonedDateTime?

Returns the estimated time of arrival to this destination, or null if it was not provided or is unknown.