create static method

ReroutingParameters? create({
  1. required RouteTask routeTask,
  2. required RouteParameters routeParameters,
})

Creates a re-routing parameters object based on a RouteTask and RouteParameters.

The following RouteParameters properties will be ignored: RouteParameters.setStopsWithFeatureTable, RouteParameters.findBestSequence, RouteParameters.outputSpatialReference, RouteParameters.preserveFirstStop, RouteParameters.startTime, RouteParameters.returnDirections, RouteParameters.returnStops, and RouteParameters.returnRoutes

An exception is thrown if the RouteTask or RouteParameters are null.

Parameters:

  • routeTask — A RouteTask capable of solving routes on the same network used by the original route, usually the same RouteTask that was used to create the route being tracked. Used for rerouting in background thread.
  • routeParameters — The route parameters.