fitnessFactor property
Bike & pedestrian routing fitness factor, ranging from 0.0 to 1.0.
Controls how strongly hills and steep inclines are avoided when calculating bicycle routes.
Default is 0.5 ( normal / good shape ).
Implementation
double get fitnessFactor {
final OperationResult resultString = objectMethod(
pointerId,
'RoutePrefWrapper',
'getFitnessFactor',
);
return resultString['result'];
}
Bike & pedestrian routing fitness factor, ranging from 0.0 to 1.0.
The fitness factor affects route path configuration.
For mountain bike and pedestrian hiking profiles the fitness factor is used to boost to steeper slopes in path links selection.
For city bike, road bike and cross bike the fitness factor is used to avoid steeper slopes in path links selection.
Parameters
value: Factor from 0.0 (untrained) to 1.0 (professional).
Default is 0.5.
Implementation
set fitnessFactor(final double value) {
objectMethod(pointerId, 'RoutePrefWrapper', 'fitnessFactor', args: value);
}