CountryInformationElement

class CountryInformationElement(val id: Int, val pathId: Int, val startOffset: Distance, val endOffset: Distance, val countryCode: String, val regionCode: String, val drivingSide: DrivingSide, val speedUnit: Speed.Unit, val regionalSpeedLimits: List<RegionalSpeedLimit>) : HorizonElement

Horizon element that contains data about a country.

To receive such elements in the horizon snapshot, specify CountryInformationElementType in the horizon options that you register with the horizon engine:

val horizonOptions = HorizonOptions(
elementTypes = listOf(CountryInformationElementType, ...),
...
)

Important: This is a Public Preview API. It may be changed or removed at any time.

Constructors

Link copied to clipboard
constructor(id: Int, pathId: Int, startOffset: Distance, endOffset: Distance, countryCode: String, regionCode: String, drivingSide: DrivingSide, speedUnit: Speed.Unit, regionalSpeedLimits: List<RegionalSpeedLimit>)

Properties

Link copied to clipboard

ISO 3166-1 alpha-3 country code. For example: "USA" for the United States of America, or "NLD" for the Netherlands. See https://www.iso.org/obp/ui/#iso:std:iso:3166:-1:ed-4:v1:en for more details.

Link copied to clipboard

Driving side for the country.

Link copied to clipboard
open override val endOffset: Distance

End offset on the horizon path.

Link copied to clipboard
open override val id: Int

Identifier of this element.

Link copied to clipboard
open override val pathId: Int

Identifier of the horizon path to which this element belongs.

Link copied to clipboard

Speed limits defined for this region/state/country.

Link copied to clipboard

Two-letter code for the first-level subdivision of a country that can be used in combination with the ISO 3166-1 alpha-2 country code to form the ISO 3166-2 code of the subdivision. For example: "ON" (ISO 3166-2: "CA-ON") for Ontario, or "ZE" (ISO 3166-2: "NL-ZE") for Zeeland. See https://www.iso.org/obp/ui/#iso:std:iso:3166:-2:ed-4:v1:en for more details.

Link copied to clipboard

Speed unit used in the country.

Link copied to clipboard
open override val startOffset: Distance

Start offset on the horizon path.

Functions

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