ensureReachability property

bool ensureReachability
getter/setter pair

Ensure that the vehicle does not run out of energy along the way. Requires valid EVCarOptions.batterySpecifications. 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 sdk.routing.RoutingError.INVALID_PARAMETER is generated when the sdk.routing.EVCarOptions.ensure_reachability is set to true in case sdk.routing.RoutingEngine.import_route is called. Defaults to false.

Implementation

bool ensureReachability;