avoidCarpoolLanes property
Avoids carpool/HOV lanes when calculating routes.
When true, routes avoid high-occupancy vehicle (HOV) or carpool lanes. This option is only available for custom builds containing TomTom map data and is ignored in public builds.
Default is false.
Implementation
bool get avoidCarpoolLanes {
final OperationResult resultString = objectMethod(
pointerId,
'RoutePrefWrapper',
'getAvoidCarpoolLanes',
);
return resultString['result'];
}
Avoids carpool/HOV lanes when calculating routes.
When true, routes avoid high-occupancy vehicle (HOV) or carpool lanes. This option is only available for custom builds containing TomTom map data and is ignored in public builds.
Parameters
value: True to avoid carpool lanes, false to allow them.
Default is false.
Implementation
set avoidCarpoolLanes(final bool value) {
objectMethod(
pointerId,
'RoutePrefWrapper',
'avoidcarpoollanes',
args: value,
);
}