Class WarningsRegistry
A class that store warning metadata for different warning types.
Aggregates individual collection for each warning category (safety cameras, truck restrictions, etc.).
Provided by WarnerEngine so callers can lookup detailed information about specific warnings.
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.
-
Method Summary
Modifier and TypeMethodDescriptiongetBorderCrossingWarning(Warning warning) Returns a border crossing warning corresponding to the given identifier.getCustomWarning(Warning warning) Returns additional data associated with the given custom warning.getDangerZoneWarning(Warning warning) Returns a danger zone warning corresponding to the given identifier.getEnvironmentalZoneWarning(Warning warning) Returns environmental zone warning corresponding to the given identifier.getLaneDecreaseWarning(Warning warning) Returns a lane decrease warning corresponding to the given identifier.getLowSpeedZoneWarning(Warning warning) Returns a low speed zone warning corresponding to the given identifier.getRailwayCrossingWarning(Warning warning) Returns a railway crossing warning corresponding to the given identifier.getRealisticViewWarning(Warning warning) Returns a realistic-view warning corresponding to the given identifier.getRoadSignWarning(Warning warning) Returns a road-sign warning corresponding to the given identifier.getSafetyCameraWarning(Warning warning) Returns a safety-camera warning corresponding to the given identifier.getSchoolZoneWarning(Warning warning) Returns a school zone warning corresponding to the given identifier.getTollStopWarning(Warning warning) Returns a toll stop warning corresponding to the given identifier.getTrafficMergeWarning(Warning warning) Returns a traffic merge warning corresponding to the given identifier.getTruckRestrictionWarning(Warning warning) Returns a truck restrictions warning corresponding to the given identifier.
-
Method Details
-
getSafetyCameraWarning
Returns a safety-camera warning corresponding to the given identifier.
- Parameters:
warning-The identifier of the warning, as provided by
WarningListener.onWarning. Thewarninguniquely identifies a single safety-camera warning within this registry and is used to retrieve its full metadata.- Returns:
The
SafetyCameraWarningobject associated with the providedwarning, ornullif no warning exists for the givenwarning. This object contains the full details and attributes of the corresponding warning.
-
getTruckRestrictionWarning
Returns a truck restrictions warning corresponding to the given identifier.
- Parameters:
warning-The identifier of the warning, as provided by
WarningListener.onWarning. Thewarninguniquely identifies a single truck restrictions warning within this registry and is used to retrieve its full metadata.- Returns:
The
TruckRestrictionWarningobject associated with the providedwarning, ornullif no warning exists for the givenwarning. This object contains the full details and attributes of the corresponding warning.
-
getRoadSignWarning
Returns a road-sign warning corresponding to the given identifier.
- Parameters:
warning-The identifier of the warning, as provided by
WarningListener.onWarning. Thewarninguniquely identifies a single road sign warning within this registry and is used to retrieve its full metadata.- Returns:
The
sdk.navigation.RoadSignWarningobject associated with the providedwarning, ornullif no warning exists for the givenwarning. This object contains the full details and attributes of the corresponding warning.
-
getRealisticViewWarning
Returns a realistic-view warning corresponding to the given identifier.
- Parameters:
warning-The identifier of the warning, as provided by
WarningListener.onWarning. Thewarninguniquely identifies a single realistic-view warning within this registry and is used to retrieve its full metadata.- Returns:
The
RealisticViewWarningobject associated with the providedwarning, ornullif no warning exists for the givenwarning. This object contains the full details and attributes of the corresponding warning.
-
getEnvironmentalZoneWarning
Returns environmental zone warning corresponding to the given identifier.
- Parameters:
warning-The identifier of the warning, as provided by
WarningListener.onWarning. Thewarninguniquely identifies a single environmental zone warning within this registry and is used to retrieve its full metadata.- Returns:
The
EnvironmentalZoneWarningobject associated with the providedwarning, ornullif no warning exists for the givenwarning. This object contains the full details and attributes of the corresponding warning.
-
getSchoolZoneWarning
Returns a school zone warning corresponding to the given identifier.
- Parameters:
warning-The identifier of the warning, as provided by
WarningListener.onWarning. Thewarninguniquely identifies a single school zone warning within this registry and is used to retrieve its full metadata.- Returns:
The
SchoolZoneWarningobject associated with the providedwarning, ornullif no warning exists for the givenwarning. This object contains the full details and attributes of the corresponding warning.
-
getTollStopWarning
Returns a toll stop warning corresponding to the given identifier.
- Parameters:
warning-The identifier of the warning, as provided by
WarningListener.onWarning. Thewarninguniquely identifies a single toll stop warning within this registry and is used to retrieve its full metadata.- Returns:
The
TollStopobject associated with the providedwarning, ornullif no warning exists for the givenwarning. This object contains the full details and attributes of the corresponding warning.
-
getDangerZoneWarning
Returns a danger zone warning corresponding to the given identifier.
- Parameters:
warning-The identifier of the warning, as provided by
WarningListener.onWarning. Thewarninguniquely identifies a single danger zone warning within this registry and is used to retrieve its full metadata.- Returns:
The
DangerZoneWarningobject associated with the providedwarning, ornullif no warning exists for the givenwarning. This object contains the full details and attributes of the corresponding warning.
-
getBorderCrossingWarning
Returns a border crossing warning corresponding to the given identifier.
- Parameters:
warning-The identifier of the warning, as provided by
WarningListener.onWarning. Thewarninguniquely identifies a single border crossing warning within this registry and is used to retrieve its full metadata.- Returns:
The
BorderCrossingWarningobject associated with the providedwarning, ornullif no warning exists for the givenwarning. This object contains the full details and attributes of the corresponding warning.
-
getRailwayCrossingWarning
Returns a railway crossing warning corresponding to the given identifier.
- Parameters:
warning-The identifier of the warning, as provided by
WarningListener.onWarning. Thewarninguniquely identifies a single railway crossing warning within this registry and is used to retrieve its full metadata.- Returns:
The
RailwayCrossingWarningobject associated with the providedwarning, ornullif no warning exists for the givenwarning. This object contains the full details and attributes of the corresponding warning.
-
getLowSpeedZoneWarning
Returns a low speed zone warning corresponding to the given identifier.
- Parameters:
warning-The identifier of the warning, as provided by
WarningListener.onWarning. Thewarninguniquely identifies a single low speed zone warning within this registry and is used to retrieve its full metadata.- Returns:
The
LowSpeedZoneWarningobject associated with the providedwarning, ornullif no warning exists for the givenwarning. This object contains the full details and attributes of the corresponding warning.
-
getTrafficMergeWarning
Returns a traffic merge warning corresponding to the given identifier.
- Parameters:
warning-The identifier of the warning, as provided by
WarningListener.onWarning. Thewarninguniquely identifies a single traffic merge warning within this registry and is used to retrieve its full metadata.- Returns:
The
sdk.navigation.TrafficMergeWarningobject associated with the providedwarning, ornullif no warning exists for the givenwarning. This object contains the full details and attributes of the corresponding warning.
-
getLaneDecreaseWarning
Returns a lane decrease warning corresponding to the given identifier.
- Parameters:
warning-The identifier of the warning, as provided by
WarningListener.onWarning. Thewarninguniquely identifies a single lane decrease warning within this registry and is used to retrieve its full metadata.- Returns:
The
LaneDecreaseWarningobject associated with the providedwarning, ornullif no warning exists for the givenwarning. This object contains the full details and attributes of the corresponding warning.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.
-
getCustomWarning
Returns additional data associated with the given custom warning.
The provided
warningidentifies a specific custom warning instance by its base warning information and custom warning type. This information is used to resolve the corresponding entry in the warning registry and retrieve any additional, type-specific data associated with the warning.- Parameters:
warning-The
Warninginstance identifying the custom warning for which additional data should be retrieved.- Returns:
The
CustomWarningassociated with the givenwarning, ornullif no additional data exists for this warning. The returned object contains the payload with type-specific details and attributes of the corresponding warning.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.
-