getWarnings abstract method

List<CustomWarning> getWarnings(
  1. SegmentData currentSegment,
  2. SegmentData? previousSegment
)

Returns a list of custom warnings for the given vehicle position.

This method evaluates the custom warning provider using the current vehicle position on the electronic horizon and returns the resulting custom warnings along with corresponding payload.

  • currentSegment Segment data representing the vehicle’s current position on the electronic horizon.

  • previousSegment Segment data representing the vehicle’s previous position on the electronic horizon. This parameter may be null if no previous position information is available.

Returns List<CustomWarning>. A list of CustomWarning instances representing all applicable custom warnings. The list may be empty if no warnings apply.

Implementation

List<CustomWarning> getWarnings(SegmentData currentSegment, SegmentData? previousSegment);