SchoolZoneWarning
public struct SchoolZoneWarning : Hashable
A school zone warning which notifies about a school zone presence on road with a speed limit
different than the default speed limit applicable for cars.
Use SchoolZoneWarningListener to get notifications about school zones.
-
The distance from the current location to the school zone in meters.
Declaration
Swift
public var distanceToSchoolZoneInMeters: Double -
Speed limit meters/second, which applies to current school zone.
Declaration
Swift
public var speedLimitInMetersPerSecond: Double -
The distance type for the warning, e.g. a warning for a new school zone ahead or a warning for passing a school zone.
Declaration
Swift
public var distanceType: DistanceType -
Time rule indicating the time periods for which the warning applies. If the field is ‘null’ then the warning is applicable at anytime.
Declaration
Swift
public var timeRule: TimeRule? -
Creates a new instance.
Declaration
Swift
public init(distanceToSchoolZoneInMeters: Double, speedLimitInMetersPerSecond: Double, distanceType: DistanceType, timeRule: TimeRule? = nil)