MapboxJunctionApi

Mapbox Junction Api allows you to generate junction for select maneuvers.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun cancelAll()

Invoke the method to cancel all ongoing requests to generate a junction.

Link copied to clipboard
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

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.