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 (*).

ParameterDefault valueDescription
itemId*
Resource ID.
ivalType1Requested interval type, the same as in messages. Possible values are 1,2,3,4.
ivalFrom0Interval start time.
ivalToUINT_MAXInterval 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 codeDescription
7Invalid resource ID.
6Internal error.
Download PDF file
Download Word document

See also