avoidTurnAroundInstruction property

bool get avoidTurnAroundInstruction

Avoids generating "Turnaround when possible" instructions during navigation.

When true, the SDK avoids generating turn-around instructions. For car and truck transport modes, this preference is overridden during route recalculation (the current driving direction is used instead), except when emergency vehicle mode is active.

When setting user roadblocks during navigation, this preference controls whether a turn-around instruction may be generated.

Default is false.

Implementation

bool get avoidTurnAroundInstruction {
  final OperationResult resultString = objectMethod(
    pointerId,
    'RoutePrefWrapper',
    'getAvoidTurnAroundInstruction',
  );
  return resultString['result'];
}
set avoidTurnAroundInstruction (bool value)

Avoids generating "Turnaround when possible" instructions during navigation.

When true, the SDK avoids generating turn-around instructions. For car and truck transport modes, this preference is overridden during route recalculation (the current driving direction is used instead), except when emergency vehicle mode is active.

When setting user roadblocks during navigation, this preference controls whether a turn-around instruction may be generated.

Parameters

  • value: True to avoid turn-around instructions, false to allow them.

Default is false.

Implementation

set avoidTurnAroundInstruction(final bool value) {
  objectMethod(
    pointerId,
    'RoutePrefWrapper',
    'avoidturnaroundinstruction',
    args: value,
  );
}