avoidMotorways property

bool get avoidMotorways

Avoids motorways/highways when calculating routes.

When true, the routing engine avoids high-speed motorways and highways, preferring local roads instead.

Default is false.

Implementation

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

Avoids motorways/highways when calculating routes.

When true, the routing engine avoids high-speed motorways and highways, preferring local roads instead.

Parameters

  • value: True to avoid motorways, false to allow them.

Default is false.

Implementation

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