SchoolZoneWarningDelegate
public protocol SchoolZoneWarningDelegate : AnyObject
This protocol
should be implemented in order to receive school zone warnings.
Note: This protocol will provide
school zone warnings only in case the speed limit inside the school zone is different than the
default speed limit applicable for cars outside the school zone. For warnings about school zones
regardless of their speed limits, the [NavigatorInterface.road_sign_warning_listener] should be
used and the RoadSignWarning.type should be checked for value [RoadSignType.SCHOOL_ZONE].
The school zone warner is a zone warner, which means that for a school zone there will always be
3 warnings emitted, with the [SchoolZoneWarning.distance_type] set to DistanceType.ahead, DistanceType.reached
and lastly DistanceType.passed when the end of the school zone is passed.
-
Called whenever a new school zone warning is available.
Declaration
Swift
func onSchoolZoneWarningUpdated(_ schoolZoneWarning: [SchoolZoneWarning])Parameters
schoolZoneWarningThe object that contains details on the school zone warning.