get_routes_history

To get the history of routes, use order/get_routes_history.

Request

Copied!
svc=order/get_routes_history&params={
						"itemId":<long>,
						"ivalType":<int>,
						"ivalFrom":<uint>,
						"ivalTo":<uint>,
						"name":"<text>",
						"unitId":<long>,
						"routeId":<long>
				   }

Parameters

The required parameters are marked with an asterisk (*).

Parameter Default value Description
itemId* Resource ID.
ivalType 1 Requested interval type, the same as in messages. Possible values are 1,2,3,4.
ivalFrom 0 Interval start time.
ivalTo UINT_MAX Interval end time.
name Route name masks. For example: “name”: “Vil*,Berl*” will search for routes which start with ‘Vil’ and ‘Berl’.
unitId Unit ID.
routeId Route ID.

Response

Copied!
{
	"routes":[
		{...}.
		{...},
		...
	],
	"count":<uint>,		/* number of the filtered routes (size of "routes") */
	"total":<uint>		/* total number of routes for the requested period */
}

Error codes

Error code Description
7 Invalid resource ID.
6 Internal error.

If you find a mistake in the text, please select it and press Ctrl+Enter.