Lane


@CarProtocol
public final class Lane


Configuration of a single lane of a road at a particular point in the navigation.

A Lane object describes all possible directions the driver could go from this lane, and indicates which directions the driver could take to stay on the navigation route.

Summary

Nested types

public final class Lane.Builder

A builder of Lane.

Public methods

boolean
@NonNull List<LaneDirection>

Returns the list of directions a driver can take from this Lane.

int
@NonNull String

Public methods

equals

public boolean equals(@Nullable Object other)

getDirections

Added in 1.0.0
public @NonNull List<LaneDirectiongetDirections()

Returns the list of directions a driver can take from this Lane.

See also
addDirection

hashCode

public int hashCode()

toString

public @NonNull String toString()