Mapbox Maneuver Api
class MapboxManeuverApi
Content copied to clipboard
Mapbox Maneuver Api allows you to request Maneuver instructions given a DirectionsRoute (to get all maneuvers for the provided route) or RouteProgress (to get remaining maneuvers for the provided route).
You can use the default MapboxManeuverView to render the results of the functions exposed by this API.
Constructors
MapboxManeuverApi
Link copied to clipboard
@JvmOverloads()
Content copied to clipboard
Mapbox Maneuver Api allows you to request Maneuver instructions given a DirectionsRoute (to get all maneuvers for the provided route) or RouteProgress (to get remaining maneuvers for the provided route).
Functions
getManeuvers
Link copied to clipboard
fun getManeuvers(routeProgress: RouteProgress): Expected<ManeuverError, List<Maneuver>>
Content copied to clipboard
Returns a list of Maneuvers which are wrappers on top of BannerInstructions that are in the provided route.
@JvmOverloads()
Content copied to clipboard
Returns a list of Maneuvers which are wrappers on top of BannerInstructions that are in the provided route.
getRoadShields
Link copied to clipboard
fun getRoadShields(maneuvers: List<Maneuver>, callback: RoadShieldCallback)
Content copied to clipboard
Given a list of Maneuver the function requests road shields (if available) using urls associated in RoadShieldComponentNode.