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

Destination

public final class Destination
extends Object implements VersionedParcelable

java.lang.Object
   ↳ androidx.car.cluster.navigation.Destination


Final or intermediate stop in a navigation route.

Summary

Nested classes

class Destination.Builder

Builder for creating a Destination  

enum Destination.Traffic

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

Public methods

boolean equals(Object o)
String getAddress()

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

Distance getDistance()

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

ZonedDateTime getEta()

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

LatLng getLocation()

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

String getTitle()

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

Destination.Traffic getTraffic()

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

int hashCode()
String toString()

Inherited methods

Public methods

equals

public boolean equals (Object o)

Parameters
o Object

Returns
boolean

getAddress

public String getAddress ()

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

Returns
String

getDistance

public Distance getDistance ()

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

Returns
Distance

getEta

public ZonedDateTime getEta ()

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

Returns
ZonedDateTime

getLocation

public LatLng getLocation ()

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

Returns
LatLng

getTitle

public String getTitle ()

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

Returns
String

getTraffic

public Destination.Traffic getTraffic ()

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

Returns
Destination.Traffic

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String