Optimise the order of the stops of a tour, or calculate a given sequence. Requires the geo tool permission or wpass, and the tourapi option.
Change Note: opt=no calculates the given sequence without optimising; before_* fields with the metres and hours of the given sequence for comparison (aid, cid and did calls)
| HTTP Status | Error Code | Description |
|---|---|---|
| 403 | AUTHERROR | No permission |
| 409 | DISABLED | The tourapi option is off |
| 404 | noride | did given, but there is no ride (ddate) with that id |
| 409 | allbad | None of the ids has a usable geo position and address, the ride has no dtour stops, or the tour has no plannable address |
| 409 | planerror | The routing provider failed or could not plan the tour |
| 409 | noparams | Neither aid, cid, did nor tid given |
| 409 | error | aid or cid is not a comma separated list of ids |