Routing (online)

Find a route between two or more stops using an Online Route Task. Populate the task parameters and pass them to a solve method. Task parameters include the stop locations, the barriers (point barriers only in this sample), the spatial reference of the stops and barriers, and whether to preserve the order of the stops.