Builder

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

Builder class for creating LegStep instances.

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.

Constructors

Link copied to clipboard
constructor(geometry: String, distance: Double, duration: Double, mode: String, maneuver: StepManeuver, weight: Double)

Functions

Link copied to clipboard
fun build(): LegStep

Builds a LegStep instance with the current builder values.

Link copied to clipboard

Sets the banner instructions.

Link copied to clipboard

Sets the destinations.

Link copied to clipboard

Sets the driving side.

Link copied to clipboard

Sets the typical duration.

Link copied to clipboard

Sets the exits.

Link copied to clipboard

Sets the intersections.

Link copied to clipboard

Sets the name.

Link copied to clipboard

Sets the pronunciation.

Link copied to clipboard

Sets the reference.

Link copied to clipboard

Sets the rotary name.

Link copied to clipboard
fun withRotaryPronunciation(rotaryPronunciation: String?): LegStep.Builder

Sets the rotary pronunciation.

Link copied to clipboard

Sets the speed limit sign.

Link copied to clipboard

Sets the speed limit unit.

Link copied to clipboard

Sets the voice instructions.