MapboxRoadNameLabelApi

class MapboxRoadNameLabelApi

The API allows you to generate data to be rendered as a part of road name labels.

Constructors

Link copied to clipboard
fun MapboxRoadNameLabelApi()

Functions

Link copied to clipboard
fun getRoadNameLabel(road: Road): RoadLabel

The method takes in Road and uses the model to extract the road name, shield name and request the route shield based on the Road.shieldUrl.