Contents:
This API call controls a batch matrix job that has been created using batchroutes.createjob API call.
Note that, by default, jobs are auto-started within the batchroutes.createjob API call, so you do not normally need to use this.
It returns a URL of the batchroutes.jobdata API call that can be polled to determine when the data is available.
Example which starts asyncronous planning of a batch job.
POST https://api.cyclestreets.net/v2/batchroutes.controljob?key=... ( [id] => 69158 [action] => start [username] => myusername [password] => mypassword )
Result:
{ "id": 69158, "status": "open", "statusUrl": "https://api.cyclestreets.net/v2/batchroutes.jobdata?key=..." }
Action to take. Available actions are:
None.
JSON response as above, containing a result status and the URL to poll which gives the progress.
The returned status values are:
JSON object containing an error key and a text string.
Example error (text string will vary):
{
"error": "An error occurred while controlling the job."
}