Step

public final class Step
extends Object implements VersionedParcelable

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


An action that the driver should take in order to remain on the current navigation route. For example: turning onto a street, taking a highway exit and merging onto a different highway, continuing straight through a roundabout, etc.

Summary

Nested classes

class Step.Builder

Builder for creating a Step  

Public methods

boolean equals(Object o)
Distance getDistance()

Returns the distance from the current position to the point where this navigation step should be executed, or null if distance to this step was not provided.

List<Lane> getLanes()

Returns the configuration of all road lanes at the point where the driver should execute this step.

Maneuver getManeuver()

Returns the maneuver to be performed on this step, or null if this step doesn't involve a maneuver.

int hashCode()
String toString()

Inherited methods

Public methods

equals

public boolean equals (Object o)

Parameters
o Object

Returns
boolean

getDistance

public Distance getDistance ()

Returns the distance from the current position to the point where this navigation step should be executed, or null if distance to this step was not provided.

Returns
Distance

getLanes

public List<Lane> getLanes ()

Returns the configuration of all road lanes at the point where the driver should execute this step. Lane configurations are listed from left to right.

Returns
List<Lane>

getManeuver

public Maneuver getManeuver ()

Returns the maneuver to be performed on this step, or null if this step doesn't involve a maneuver.

Returns
Maneuver

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String