get_route_from_history
To get a route from history, use order/get_route_from_history.
Request
svc=order/get_route_from_history¶ms={
"itemId":<long>,
"routeId":<long>,
"timeFrom":<uint>,
"timeTo":<uint>,
"addPoints":<uint>
}
Parameters
The required parameters are marked with an asterisk (*).
| Parameter | Description |
|---|---|
| itemId* | Resource ID. |
| routeId* | Route ID. |
| timeFrom* | Start time. |
| timeTo* | End time. |
| addPoints | Add route points to the response. The default is 1. |
Response
{
"routes":[
{...},
{...},
...
],
"count":<uint>,
"total":<uint>
}
Error codes
| Error code | Description |
|---|---|
| 7 | Incorrect resource ID. |
| 6 | Internal error. |