RefreshRouteOptions.withEVTruckOptions constructor - RefreshRouteOptions - routing library - Dart API
RefreshRouteOptions.withEVTruckOptions
RefreshRouteOptions.withEVTruckOptions constructor
- EVTruckOptions evTruckOptions
Constructs a RefreshRouteOptions object with EVTruckOptions.
evTruckOptionsConverts the route to an electric truck route, if a different transport mode was used for the RouteHandle. Note that in case this is not possible, an RoutingError.noRouteFound error will be triggered.
Implementation
factory RefreshRouteOptions.withEVTruckOptions(EVTruckOptions evTruckOptions) => $prototype.withEVTruckOptions(evTruckOptions);