delay property

int get delay

Estimated delay introduced by the traffic event.

The delay is expressed in seconds. When the delay is not available the SDK returns -1.

Returns

  • int: estimated delay in seconds, or -1 when unknown.

Implementation

int get delay {
  final OperationResult resultString = objectMethod(
    pointerId,
    'TrafficEvent',
    'getDelay',
  );

  return resultString['result'];
}