Instruction

data class Instruction(val instructionType: InstructionType, val text: String, val drawableResId: Int)

Represents a single instruction in a route, including its type, display text, and drawable resource ID.

Constructors

Link copied to clipboard
constructor(instructionType: InstructionType, text: String, drawableResId: Int)

Properties

Link copied to clipboard

A resource ID for an associated icon or image.

Link copied to clipboard
val instructionType: InstructionType

The type of the instruction (e.g., turn left, go straight).

Link copied to clipboard

The instruction text to display.