MapboxRestAreaApi

class MapboxRestAreaApi @JvmOverloads constructor(val options: MapboxRestAreaOptions = MapboxRestAreaOptions.Builder().build())

Mapbox Rest Area Api allows you to generate service area and parking area information for select maneuvers.

Constructors

Link copied to clipboard
constructor(options: MapboxRestAreaOptions = MapboxRestAreaOptions.Builder().build())

Properties

Link copied to clipboard

MapboxRestAreaOptions

Functions

Link copied to clipboard
fun cancelAll()

Invoke the method to cancel all ongoing requests to generate a sapa guide map.

Link copied to clipboard
fun generateRestAreaGuideMap(instructions: BannerInstructions, consumer: MapboxNavigationConsumer<Expected<RestAreaGuideMapError, RestAreaGuideMapValue>>)

The method takes in BannerInstructions and generates rest area guide map based on the presence of BannerComponents of type BannerComponents.GUIDANCE_VIEW and subType BannerComponents.SAPAGUIDEMAP

Link copied to clipboard

The method takes in RouteProgress and generates rest area guide map based on the presence of RestStop.guideMapUri.