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, BannerComponents.SAPA, BannerComponents.CITYREAL, BannerComponents.AFTERTOLL, BannerComponents.SIGNBOARD, BannerComponents.TOLLBRANCH, BannerComponents.EXPRESSWAY_EXIT, BannerComponents.EXPRESSWAY_ENTRANCE

Parameters

instructions

object representing BannerInstructions

consumer

informs about the state of junction.


fun generateJunction(instructions: BannerInstructions, format: String, consumer: MapboxNavigationConsumer<Expected<JunctionError, JunctionViewData>>)

The method takes in BannerInstructions and generates a junction based on the presence of specific banner components.

Parameters

instructions

object representing BannerInstructions

format

the desired format for the junction view image (e.g., "png" or "svg").

consumer

informs about the state of junction.