Load rounds for interval

To load rounds of a certain route for a specified period, use the command route/load_rounds:

svc=route/load_rounds&params={"itemId":<long>,
			      "timeFrom":<uint>,
			      "timeTo":<uint>,
			      "fullJson":<uint>}

Parameters

Name Description
itemId route ID
timeFrom interval beginning
timeTo interval end
fullJson response format: 1 - detailed information, 0 - short information

Response

Short information:

[
	{
		"id":<long>,	/* round ID */
		"n":<text>,	/* name */
		"d":<text>,	/* description */
		"sh":<text>,	/* schedule name */
		"f":<uint>,	/* round flags */
		"tz":<uint>,	/* timezone */
		"u":<long>,	/* unit, assigned on this round */		
		"at":<uint>,	/* activation time */
		"vt":<uint>,	/* time from which validity period begins */
		"vp":<uint>,	/* validity period */
		"sts":<uint>,	/* round state flags */
		"st":{		/* round state */
			"st":{		/* general round state */
				"pi":<uint>,	/* check point index, if 4294967295 - round isn't started */
				"ps":<uint>,	/* state flags + event flags */
				"ut":<uint>	/* last event time */
			},
			"pts":{		/* state by points */
				<text>:{	/* check point ID */
					"st": <uint>,	/* event flags */
					"tm": <uint>	/* last event time */
				}
			}
		}
	}
]

Round state flags and event flags can be found in the chapter Round information.

Detailed information:

The format of the response will be the same as one described in the chapter Round information.

Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2021 Gurtam