Builder

constructor(geometry: String, distance: Double, duration: Double, mode: String, maneuver: StepManeuver, weight: Double)

Parameters

geometry

Gives the geometry of the leg step as encoded polyline string.

distance

The distance traveled from the maneuver to the next LegStep in meters.

duration

The estimated travel time from the maneuver to the next LegStep in seconds.

mode

Indicates the mode of transportation in the step.

maneuver

A StepManeuver object that typically represents the first coordinate making up the LegStep.geometry.

weight

Specifies a decimal precision of edge weights, default value 1.