Skip to Content

LzRouteLeg

Constructors

LzRouteLeg.new

LzRouteLeg.new(num distance, num duration, LatLng startLocation, LatLng endLocation, List<LzRouteStep> steps)

const

LzRouteLeg.fromJson

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

factory

Properties

PropertyTypeDescription
distancenumThe distance of the leg in meters. (final)
durationnumThe time duration of the leg in seconds. (final)
endLocationLatLngThe final position of the leg. (final)
startLocationLatLngThe initial position of the leg. (final)
stepsList<LzRouteStepThe steps of the leg (final)

Methods

toJson

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