RoadSign
public struct RoadSign : Hashable
Describes a road sign.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
-
The offset in meters from the beginning of the segment to the location of the road sign in positive direction.
Declaration
Swift
public var offsetInMeters: Int32 -
Segment direction which the road sign is applied.
Declaration
Swift
public var travelDirection: TravelDirection -
Type of the road sign.
Declaration
Swift
public var roadSignType: RoadSignType -
The main category to which the road sign belongs.
Declaration
Swift
public var roadSignCategory: RoadSignCategory -
Flag indicating if the road sign is a priority sign.
Declaration
Swift
public var isPrioritySign: Bool -
Specifies the general warning to which the road sign belongs.
Declaration
Swift
public var generalWarningType: GeneralWarningRoadSignType -
Specifies a list of vehicle types for which the road sign is applicable. The list will be empty when the road sign is applicable for all vehicles including cars.
Declaration
Swift
public var vehicleTypes: [RoadSignVehicleType] -
Specifies the weather type for which the sign is applicable. If weather type is
WeatherType.unknown, the sign is actual for all weather types.Declaration
Swift
public var weatherType: WeatherType -
Optional value visible on the main sign related to specific road sign types, as it is printed on the local road sign.
Declaration
Swift
public var localizedSignValue: LocalizedText? -
Optional pre-warning in terms of distance, of the upcoming warning or regulation. The pre-warning information is given as printed on the local road sign.
Declaration
Swift
public var localizedPreWarning: LocalizedText? -
Optional length information during which the warning is applicable. Usually, this information is shown on a separate shield below the main shield. For example, a sign may warn on playing children for a length of 100 m, starting from the location of the warning sign. The length information (most likely with units) is given as printed on the local road sign.
Declaration
Swift
public var localizedDuration: LocalizedText? -
Optional text visible on the supplemental sign indicating specific time(s) at which the road sign is applicable. The time information is given as printed on the local road sign.
Declaration
Swift
public var localizedValidityTime: LocalizedText? -
init(offsetInMeters:travelDirection: roadSignType: roadSignCategory: isPrioritySign: generalWarningType: vehicleTypes: weatherType: localizedSignValue: localizedPreWarning: localizedDuration: localizedValidityTime: ) Creates a new instance with default values.
Declaration
Swift
public init(offsetInMeters: Int32, travelDirection: TravelDirection, roadSignType: RoadSignType, roadSignCategory: RoadSignCategory, isPrioritySign: Bool, generalWarningType: GeneralWarningRoadSignType, vehicleTypes: [RoadSignVehicleType], weatherType: WeatherType, localizedSignValue: LocalizedText? = nil, localizedPreWarning: LocalizedText? = nil, localizedDuration: LocalizedText? = nil, localizedValidityTime: LocalizedText? = nil)