ReroutingParameters

constructor(routeTask: RouteTask, routeParameters: RouteParameters)

Creates a re-routing parameters object based on a RouteTask and RouteParameters. The following RouteParameters properties will be ignored: RouteParameters.setStops, 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.

Since

200.1.0

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.

See also