MapboxJunctionApi

class MapboxJunctionApi(accessToken: String)

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

Constructors

MapboxJunctionApi
Link copied to clipboard
fun MapboxJunctionApi(accessToken: String)

Functions

cancelAll
Link copied to clipboard
fun cancelAll()
Invoke the method to cancel all ongoing requests to generate a junction.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
generateJunction
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
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String