Get trips for interval

:!: Please execute messages/load_interval to upload messages before starting the command.

To get information about trips for a specified period, please use unit/get_trips command:

svc=unit/get_trips&params={"itemId":<long>,			   
			   "msgsSource":<int>}

:!: Current request can’t be executed simultaneously with following requests:

Parameters

Name Description
itemId unit ID
timeFrom interval beginning
timeTo interval end
msgsSource name of message layer (only one layer is available);
values: 1 – message loader used

Response

[{
	"from":{	/* starting point of the trip */
		"i":<unit>,	/* index of message */
		"t":<unit>,	/* time */
		"p":{		/* position */
			"y":<double>,		/* latitude */
			"x":<double>		/* longitude */
		}
	},
	"to":{		/* ending point of the trip */
		"i":<unit>,	/* index of message */
		"t":<unit>,	/* time */
		"p":{		/* position */
			"y":<double>,		/* latitude*/
			"x":<double>		/* longitude */
		}
	},
	"m":<double>	/* mileage (meters) */
}]