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, ...),
...
)Content copied to clipboard
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", "NLD". 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
End offset on the horizon path.
Link copied to clipboard
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
ISO 3166-2 state/province/region code. For example: "US-TX", "NL-ZE".
Link copied to clipboard
Speed unit used in the country.
Link copied to clipboard
Start offset on the horizon path.