Class SchoolZoneWarning
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleDeprecated.Will be removed in v4.29.0.Deprecated.Will be removed in v4.29.0.intUnique identifier for this specific school zone warning instance.doubleSpeed limit meters/second, which applies to current school zone.Time rule indicating the time periods for which the warning applies. -
Constructor Summary
ConstructorsConstructorDescriptionSchoolZoneWarning(int id, double distanceToSchoolZoneInMeters, double speedLimitInMetersPerSecond, DistanceType distanceType, TimeRule timeRule) Deprecated.Will be removed in v4.29.0. -
Method Summary
-
Field Details
-
id
public int idUnique identifier for this specific school zone warning instance. Each warning type (truck restrictions, speed warnings, etc.) maintains its own independent ID namespace. Use this ID to track, update, or dismiss individual warning instances of this type.
-
distanceToSchoolZoneInMeters
Deprecated.Will be removed in v4.29.0. Use the
WarningUpdateimplementation instead.The distance from the current location to the school zone in meters.
-
speedLimitInMetersPerSecond
public double speedLimitInMetersPerSecondSpeed limit meters/second, which applies to current school zone.
-
distanceType
Deprecated.Will be removed in v4.29.0. Use the
WarningStatusimplementation instead.The distance type for the warning, e.g. a warning for a new school zone ahead or a warning for passing a school zone.
-
timeRule
Time rule indicating the time periods for which the warning applies. If the field is 'null' then the warning is applicable at anytime.
-
-
Constructor Details
-
Method Details