Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

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

Congestion level on the way to a destination, compared to ideal driving conditions.

Public methods

Boolean
equals(other: Any?)

String

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

Distance?

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

ZonedDateTime?

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

LatLng?

Returns the geo-location of this destination, or null if it 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.

Destination.Traffic

Returns the congestion level to this destination, compared to to ideal driving conditions.

Int

String

Public methods

equals

fun equals(other: Any?): Boolean

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.

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.

getEta

@Nullable fun getEta(): ZonedDateTime?

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

getLocation

@Nullable fun getLocation(): LatLng?

Returns the geo-location of this destination, or null if it 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.

getTraffic

@NonNull fun getTraffic(): Destination.Traffic

Returns the congestion level to this destination, compared to to ideal driving conditions.

hashCode

fun hashCode(): Int

toString

fun toString(): String