RoutingInfo


@CarProtocol
public final class RoutingInfo implements NavigationTemplate.NavigationInfo


Represents routing information that can be shown in the NavigationTemplate during navigation

Summary

Nested types

public final class RoutingInfo.Builder

A builder of RoutingInfo.

Public methods

boolean
@Nullable Distance

Returns the current distance to display to the user or null if not set.

@Nullable Step

Returns the current step to display to the user or null if not set.

@Nullable CarIcon

Returns an image for a junction of the maneuver or null if not set.

@Nullable Step
int
boolean

Returns whether the routing info is in a loading state.

@NonNull String

Public methods

equals

public boolean equals(@Nullable Object other)

getCurrentDistance

Added in 1.0.0
public @Nullable Distance getCurrentDistance()

Returns the current distance to display to the user or null if not set.

See also
setCurrentStep

getCurrentStep

Added in 1.0.0
public @Nullable Step getCurrentStep()

Returns the current step to display to the user or null if not set.

See also
setCurrentStep

getJunctionImage

Added in 1.0.0
public @Nullable CarIcon getJunctionImage()

Returns an image for a junction of the maneuver or null if not set.

See also
setJunctionImage

getNextStep

Added in 1.0.0
public @Nullable Step getNextStep()

hashCode

public int hashCode()

isLoading

Added in 1.0.0
public boolean isLoading()

Returns whether the routing info is in a loading state.

See also
setLoading

toString

public @NonNull String toString()