allowOnlineCalculation property

bool get allowOnlineCalculation

Allows route calculation using online services when available.

When enabled, the SDK may use online routing services for calculating routes in addition to or instead of offline data. Network connectivity is required when this option is enabled.

Default is true.

Implementation

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

Allows route calculation using online services when available.

When enabled, the SDK may use online routing services for calculating routes in addition to or instead of offline data. Network connectivity is required when this option is enabled.

Parameters

  • value: True to allow online calculation, false to use only offline data.

Default is true.

Implementation

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