RoadComponent

class RoadComponent

Object that holds road components

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code value for the object.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the object.

Properties

Link copied to clipboard
val imageBaseUrl: String? = null

url for the route shield if available otherwise null

Link copied to clipboard
val language: String

2 letters language code or "Unspecified" or empty string

Link copied to clipboard
val shield: MapboxShield? = null

mapbox designed shield if available otherwise null

Link copied to clipboard
val text: String

contains the current road name user is on, based on the language available. In certain situations there can be RoadComponent that contain text as / separator. The purpose of these separators is to separate the current road name in cases they have a primary and secondary name. If you are using MapboxRoadNameView, then these separators are used to separate these names. However if you don't want to use them, you are can directly get access to RoadComponent from LocationMatcherResult and filter the names without / separators.