avoidBikingHillFactor property

  1. @Deprecated('Use fitnessFactor instead')
double get avoidBikingHillFactor

Hill avoidance factor for bicycle routes, ranging from 0.0 to 1.0.

Controls how strongly hills and steep inclines are avoided when calculating bicycle routes.

Default is 0.5.

Implementation

@Deprecated('Use fitnessFactor instead')
double get avoidBikingHillFactor {
  final OperationResult resultString = objectMethod(
    pointerId,
    'RoutePrefWrapper',
    'getFitnessFactor',
  );
  return resultString['result'];
}
  1. @Deprecated('Use fitnessFactor instead')
set avoidBikingHillFactor (double value)

Hill avoidance factor for bicycle routes, ranging from 0.0 to 1.0.

Controls how strongly hills and steep inclines are avoided when calculating bicycle routes.

Parameters

  • value: Factor from 0.0 (no avoidance) to 1.0 (maximum avoidance).

Default is 0.5.

Implementation

@Deprecated('Use fitnessFactor instead')
set avoidBikingHillFactor(final double value) {
  objectMethod(pointerId, 'RoutePrefWrapper', 'fitnessFactor', args: value);
}