Step

@Serializable
data class Step

A single step of a navigation leg.

Types

Link copied to clipboard

The direction of a navigation Step, such as a turn or a vertical movement.

Link copied to clipboard
@Serializable(with = Step.Kind.Serializer::class)
sealed class Kind

The kind of a navigation Step, such as a turn, an elevator, or stairs.

Properties

Link copied to clipboard

in radians

Link copied to clipboard
@Serializable(with = CompressedCoordinateSerializer::class)
@SerialName(value = "coords")
val coordinate: Coordinate

The coordinate of the step.

Link copied to clipboard

The level reached at the destination of this step, if any.

Link copied to clipboard

The direction of the step, if any.

Link copied to clipboard

in meters

Link copied to clipboard

in seconds

Link copied to clipboard
@SerialName(value = "firstStep")
val isFirstStep: Boolean

Indicates whether this is the first step of the itinerary.

Link copied to clipboard
@SerialName(value = "important")
val isImportant: Boolean

Indicates whether this step is important for the navigation.

Link copied to clipboard
@SerialName(value = "lastStep")
val isLastStep: Boolean

Indicates whether this is the last step of the itinerary.

Link copied to clipboard
@SerialName(value = "type")
val kind: Step.Kind?

The kind of the step, if any.

Link copied to clipboard

The difference in levels between this step and the next one, if any.

Link copied to clipboard
val name: String?

The name of the step, typically the street or place name.

Link copied to clipboard

in radians

Link copied to clipboard
val number: Int

The index of the step within its leg.

Link copied to clipboard

in radians

Functions

Link copied to clipboard
fun getNavigationInstructions(context: Context, includeStreetNames: Boolean = true): NavigationInstructions

Provides localized navigation instructions for this step