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¶ms={"itemId":<long>, "msgsSource":<uint>, "timeFrom":<uint>, "timeFrom":<uint>}
Current request can't be executed simultaneously with following requests:
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 |
[{ "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) */ }]
|