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  

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.

Location 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.

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 Location getLocation ()

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

Returns
Location

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

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String