Message closest to specified time

When track layer is rendered, you can get message closest to specified time (used in track player, hittest tool, etc.). Value of time must be between values for which track layer was rendered. To get such message, use the request:

http://{host}/avl_hittest_time?rname=<text>&unit_id=<uint>&lname=<text>&time=<uint>&
revert=<bool>

Parameters

Name Description
rname renderer name (see Create image renderer)
unit_id unit ID
lname layer name
time time
revert order of search: false - direct, true - reverse

Response

{
	"msg":{			/* current message */
		...
	},
	"_msg":{		/* previous message */
		...
	},
	"index":<uint>		/* index of current message */
}

Formats of current and previous messages are described in the chapter Data format: Message with data.

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