WaypathSegment

constructor(options: TurnByTurnDirectionOptions)

Creates a new instance of this object

Parameters

options

options to use for generating directions


constructor()

Creates a new instance of this object with default options


constructor(wp: Waypoint, direction: DirectionIndicator, options: TurnByTurnDirectionOptions)

Creates a new instance of this object

Parameters

wp

the staring waypoint for this segment

direction

the direction that this segment is relative to the previous one

options

options to use for generating directions