SdkStepRoute
data class SdkStepRoute(val rawStepDistance: RoutingDistance? = null, val rawStepDuration: RoutingDuration? = null, val rawStartLocation: SdkLatLngDTO, val rawEndLocation: SdkLatLngDTO, val endInsidePlace1: Boolean, val startInsidePlace: String?, val startInsideFloor: String?, val endInsidePlace: String?, val endInsideFloor: String?, val htmlInstructions: String, val travelMode: TravelMode, val polyline: Polyline, var maneuver: String?, var elevatorStep: Boolean = false, val showPopup: Boolean? = null, val iconPrefix: String? = null, val autoGeneratedMessage: Boolean = true, val plainInstructions: String = Jsoup.parse(htmlInstructions) .text())Represents a single navigation step within a route leg.
A step is the smallest navigable unit in the Lazarillo routing model. It defines a segment of the route between a start and end location, along with turn-by-turn instructions, distance, duration, and indoor context (building/floor information for both endpoints).
Steps are deserialized from the Lazarillo routing API via Jackson. The indoor context fields (startInsidePlace, startInsideFloor, endInsidePlace, endInsideFloor) enable the SDK to handle floor transitions and render floor-specific route segments on the map.
See also
| SdkLegRoute |
| SdkRoute |
| RoutingDistance |
| RoutingDuration |
| Instruction |
Constructors
SdkStepRoute | constructor(rawStepDistance: RoutingDistance? = null, rawStepDuration: RoutingDuration? = null, rawStartLocation: SdkLatLngDTO, rawEndLocation: SdkLatLngDTO, endInsidePlace1: Boolean , startInsidePlace: String ?, startInsideFloor: String ?, endInsidePlace: String ?, endInsideFloor: String ?, htmlInstructions: String , travelMode: TravelMode, polyline: Polyline, maneuver: String ?, elevatorStep: Boolean = false, showPopup: Boolean ? = null, iconPrefix: String ? = null, autoGeneratedMessage: Boolean = true, plainInstructions: String = Jsoup.parse(htmlInstructions) .text()) |
Properties
announcedText
var announcedText: String?autoGeneratedMessage
val autoGeneratedMessage: Boolean = truetrue if the instruction text was auto-generated by the API.
elevatorStep
var elevatorStep: Booleantrue if this step involves an elevator transition between floors.
endInsideFloor
val endInsideFloor: String?Floor identifier at the end of this step, or null if outdoors.
endInsidePlace
val endInsidePlace: String?Building/place identifier at the end of this step, or null if outdoors.
endInsidePlace1
val endInsidePlace1: BooleanWhether the end location is inside a place (legacy field).
htmlInstructions
val htmlInstructions: StringTurn-by-turn instruction text in HTML format.
iconPrefix
val iconPrefix: String? = nullinstruction
val instruction: InstructionTypes: Instruction
maneuver
var maneuver: String?Navigation maneuver identifier (e.g., “turn-left”, “turn-right”), or null.
plainInstructions
val plainInstructions: StringPlain-text version of htmlInstructions with HTML tags stripped.
polyline
val polyline: PolylineTypes: Polyline
Encoded Polyline geometry for this step’s path.
rawEndLocation
val rawEndLocation: SdkLatLngDTOEnd coordinates of this step as a SdkLatLngDTO.
rawStartLocation
val rawStartLocation: SdkLatLngDTOStart coordinates of this step as a SdkLatLngDTO.
rawStepDistance
val rawStepDistance: RoutingDistance? = nullTypes: RoutingDistance
Distance of this step as returned by the API, or null if not provided (in which case distance is computed from start/end coordinates).
rawStepDuration
val rawStepDuration: RoutingDuration? = nullTypes: RoutingDuration
Duration of this step as returned by the API, or null if not provided (in which case duration is estimated from distance and travel mode).
showPopup
val showPopup: Boolean? = nullstartInsideFloor
val startInsideFloor: String?Floor identifier at the start of this step, or null if outdoors.
startInsidePlace
val startInsidePlace: String?Building/place identifier at the start of this step, or null if outdoors.
travelMode
val travelMode: TravelModeTypes: TravelMode
The TravelMode for this step (e.g., walking, elevator).
Functions
announceString
fun announceString(): Spannedcopy
fun copy(_stepDistance: RoutingDistance, _stepDuration: RoutingDuration, htmlInstructions: String, maneuver: String, startLocation: LzLocation, polyline: Polyline): SdkStepRoute?Types: RoutingDistance, RoutingDuration, LzLocation, Polyline
getCleanInstruction
fun getCleanInstruction(htmlInstruction: String): StringClean the instruction from html tags and return a safe visible instruction
getDistanceAsInt
fun getDistanceAsInt(): IntgetProcessedEndLocation
fun getProcessedEndLocation(): LzLocationTypes: LzLocation
getProcessedStartLocation
fun getProcessedStartLocation(): LzLocationTypes: LzLocation
getStepDuration
fun getStepDuration(): RoutingDurationTypes: RoutingDuration
getStepDurationAsInt
fun getStepDurationAsInt(): Int