Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

Destination

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

Final or intermediate stop in a navigation route.

Summary

Nested classes

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

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.

LatLng?

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

Destination.Traffic

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

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(): LatLng?

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

getTraffic

@NonNull fun getTraffic(): Destination.Traffic

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

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.