routeType property

RouteType get routeType

Primary route optimization criterion.

Selects whether routes are optimized for fastest time, shortest distance, or most economic (fuel/energy efficient) path.

Default is RouteType.fastest.

Implementation

RouteType get routeType {
  final OperationResult resultString = objectMethod(
    pointerId,
    'RoutePrefWrapper',
    'getRouteType',
  );
  return RouteTypeExtension.fromId(resultString['result']);
}
set routeType (RouteType value)

Primary route optimization criterion.

Selects whether routes are optimized for fastest time, shortest distance, or most economic (fuel/energy efficient) path.

Parameters

  • value: The route optimization type to use.

Default is RouteType.fastest.

Implementation

set routeType(final RouteType value) {
  objectMethod(pointerId, 'RoutePrefWrapper', 'routetype', args: value.id);
}