RoadShield

class RoadShield(val fullRoadNumber: String, val shieldContent: String = "", val affixes: List<String> = emptyList(), val stateCode: String = "", val countryCode: String = "", val reference: String = "")

Represents a road shield: the distinctively shaped, colored sign used to identify a specific numbered road or route. Road shields are used across road classes, from major motorways down to national and regional roads, wherever a road carries a route number. These shapes serve as visual shorthand so that drivers do not need to read words while driving at high speeds. At a glance, the distinct outline of a shield helps drivers quickly understand which road they are on or need to follow.

Constructors

Link copied to clipboard
constructor(fullRoadNumber: String, iconReference: IconReference?, shieldContent: String = "", affixes: List<String> = emptyList(), stateCode: String = "", countryCode: String = "")

Constructs a RoadShield object with the given parameters.

constructor(fullRoadNumber: String, shieldContent: String = "", affixes: List<String> = emptyList(), stateCode: String = "", countryCode: String = "", reference: String = "")

Properties

Link copied to clipboard

List of possible affixes that can be shown in addition to the shieldContent.

Link copied to clipboard

The country code (ISO 3166-1 alpha-3) containing the shield.

Link copied to clipboard

Full road number. Most road numbers have a 'letter' prefix, which is also included.

Link copied to clipboard

Transparent identifier of the shield which may be empty if the underlying data source does not support the mapping. It is used to retrieve the actual road shield icon from the com.tomtom.sdk.asset.RoadShieldIconProvider.

Link copied to clipboard

Transparent identifier of the shield which may be empty if the underlying data source does not support the mapping.

Link copied to clipboard

The road number as shown on the shield.

Link copied to clipboard

The state code containing the shield (second part of an ISO 3166-2 identifier).

Functions

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

Compares this object to another object.

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

Calculates a hash value for this object.

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

Creates a string describing this object.