CountryInformation
public struct CountryInformation : HorizonElement
Describes the country information on the horizon element.
This class holds a horizon element with information regarding country. It contains information regarding country and region ISO codes, driving side, speed units and regional speed limits.
To obtain CountryInformation horizon elements, the integrator must create an instance of HorizonEngine,
register HorizonOptions including elementTypes containing HorizonElementType .countryInformationType with a call to HorizonEngine .registerHorizonOptions,
and request a HorizonResult using the previously registered HorizonOptions with a call to
HorizonEngine .generateHorizon.
Important
This is a Public Preview API. It may be changed or removed at any time.-
init(id:pathID: startOffset: endOffset: countryCode: regionCode: drivingSide: speedUnit: regionalSpeedLimits: ) Initializes instance of
CountryInformation.Declaration
Swift
public init( id: Int, pathID: Int, startOffset: Measurement<UnitLength>, endOffset: Measurement<UnitLength>, countryCode: String, regionCode: String, drivingSide: DrivingSide, speedUnit: UnitSpeed, regionalSpeedLimits: [RegionalSpeedLimit] )
-
Declaration
Swift
public let elementType: HorizonElementType -
Declaration
Swift
public let id: Int -
Declaration
Swift
public let pathID: Int -
Declaration
Swift
public let startOffset: Measurement<UnitLength> -
Declaration
Swift
public let endOffset: Measurement<UnitLength> -
The ISO country code of the current position according to ISO-3166-1 alpha 3 code.
Declaration
Swift
public let countryCode: String -
The ISO 3166-2 state/province/region code.
Declaration
Swift
public let regionCode: String -
Driving side of the country.
Declaration
Swift
public let drivingSide: DrivingSide -
Speed units used in the country.
Declaration
Swift
public let speedUnit: UnitSpeed -
Speed limits defined for this region/state/country.
Declaration
Swift
public let regionalSpeedLimits: [RegionalSpeedLimit]
CountryInformation Structure Reference