Skip to Content

LzRouteStep

Constructors

LzRouteStep.new

LzRouteStep.new(num distance, num duration, LatLng startLocation, String? startInsideFloor, String? startInsidePlace, LatLng endLocation, String? endInsideFloor, String? endInsidePlace, String htmlInstruction, String plainInstruction, String maneuver, bool elevatorStep)

const

LzRouteStep.fromJson

LzRouteStep.fromJson(Map<String, dynamic> json)

factory

Properties

PropertyTypeDescription
distancenumThe distance of the step in meters. (final)
durationnumThe time duration of the step in seconds. (final)
elevatorStepboolIf the step occurs in an elevator, this field will be true. (final)
endInsideFloorString?The lazarillo id of the floor at the start of the step, if available. (final)
endInsidePlaceString?The lazarillo id of the place at the start of the step, if available. (final)
endLocationLatLngThe final position of the step. (final)
htmlInstructionStringThe instruction for this step, can contain html tags. (final)
maneuverStringA string representing the maneuver of this step, ex. ‘turn-left’. (final)
plainInstructionStringThe instruction for this step without any tag. (final)
startInsideFloorString?The lazarillo id of the floor at the start of the step, if available. (final)
startInsidePlaceString?The lazarillo id of the place at the start of the step, if available. (final)
startLocationLatLngThe initial position of the step. (final)

Methods

toJson

toJson() → Map<String, dynamic>
Last updated on