speedSectionAlarms property

List<SpeedSectionAlarm> get speedSectionAlarms

Active speed section control alarms.

Each SpeedSectionAlarm describes an average-speed enforcement zone the vehicle is currently inside, with the live remaining distance and running average speed.

Requires enableSpeedSectionAlarm to be set, and is only produced while navigating with a route.

Returns

  • List<SpeedSectionAlarm>: The active section-control alarms. Empty when no section is active.

See also:

Implementation

List<SpeedSectionAlarm> get speedSectionAlarms {
  final OperationResult result = objectMethod(
    _pointerId,
    'AlarmService',
    'getSpeedSectionAlarms',
  );

  final List<dynamic> json = result['result'];
  return json.map((dynamic e) => SpeedSectionAlarm.fromJson(e)).toList();
}