Get Route Visualization
GET/optimize/:request_id/visualization
The run's routes drawn on the layout it was computed against, as a PNG.
Request
Responses
- 200
- 202
- 400
- 403
- 404
- 409
- 422
- 500
The route image.
optimize.still_processing: the run has not finished yet.
optimize.invalid_request_id: the id is not a request id.
common.permission_denied: the credential holds no optimisation_api.run.
optimize.request_not_found, or optimize.visualization.route_not_found: the run has no route cluster_id in view. A request in a warehouse the credential's optimisation_api.run does not reach is not found.
optimize.visualization.no_asis: view=asis on a run with no as-is routes. optimize.visualization.no_layout: the run was made before a copy of the layout was kept with each run.
The run ended in an error: the result, with its error. A malformed view or cluster_id is also a 422, with a code per field in detail.
optimize.task_failed: the run stopped and nothing was recorded.