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:



Name Description
sid session ID
unitID unit ID
layerName layer name
time time
revert order of search: 0 - direct, 1 - reverse


	"currMsg":{		/* current message */
	"prevMsg":{		/* previous message */
	"index":<uint>,		/* index of current message */
	"layerName":<text>	/* layer name */

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   |   Copyright © 2002-2020 Gurtam