algorithmType property
Public transport algorithm type for determining departure or arrival time optimization.
Controls whether public transport routes are optimized for departure time or arrival time specified in timestamp. Only applies to public transport routes.
Default is PTAlgorithmType.departure.
Implementation
PTAlgorithmType get algorithmType {
final OperationResult resultString = objectMethod(
pointerId,
'RoutePrefWrapper',
'getAlgorithmType',
);
return PTAlgorithmTypeExtension.fromId(resultString['result']);
}
Public transport algorithm type for determining departure or arrival time optimization.
Controls whether public transport routes are optimized for departure time or arrival time specified in timestamp. Only applies to public transport routes.
Parameters
value: The algorithm type to use for public transport routing.
Default is PTAlgorithmType.departure.
Implementation
set algorithmType(final PTAlgorithmType value) {
objectMethod(
pointerId,
'RoutePrefWrapper',
'algorithmtype',
args: value.id,
);
}