ensureReachability property - ElectricVehicleOptions class - routing library - Dart API
ensureReachability property
Ensure that the vehicle does not run out of energy along the way.
Requires valid battery_specifications.
It also requires that
RouteOptions.optimizationMode = OptimizationMode.fastest,
RouteOptions.speedCapInMetersPerSecond is not set, and
AvoidanceOptions is empty. Otherwise, this object is considered invalid.
Setting this flag enables calculation of a route optimized for electric vehicles.
Charging stations may be added along the route to ensure that the vehicle does
not run out of energy along the way.
It is especially useful for longer routes, because after all, charging stations are much
less common than petrol stations.
Note An RoutingError.invalidParameter is generated when
this option is set to true in case sdk.routing.RoutingEngine.import_route is called.
Defaults to false.
Note Not supported for offline routing.
Note Only supported for car routing.
Implementation
bool ensureReachability;