generateJunction

fun generateJunction(instructions: BannerInstructions, consumer: MapboxNavigationConsumer<Expected<JunctionError, JunctionValue>>)

The method takes in BannerInstructions and generates a junction based on the presence of BannerComponents of type BannerComponents.GUIDANCE_VIEW and subType BannerComponents.JCT

Parameters

instructions

object representing BannerInstructions

consumer

informs about the state of junction.