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":<uint>,
                           "timeFrom":<uint>,
                           "timeFrom":<uint>}

:!: 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) */
}]
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam