Tags (e.g. passengers): get bindings

To get information about binding/unbinding of a tag for specified period of time, use the command resource/get_tag_bindings:

svc=resource/get_tag_bindings&params={"resourceId":<long>,
				      "unitId":<long>,
				      "tagId":<long>,
				      "timeFrom":<uint>,
				      "timeTo":<uint>}

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

Parameters

Name Value
resourceId resource ID
unitId unit ID (0 - all units)
tagId tag ID (0 - all tags)
timeFrom interval beginning
timeTo interval end

Response

{
	<text>:[{	/* tag ID */
		"t":<unit>,	/* time of binding/unbinding*/
		"u":<uint>,	/* unit ID if binding, 0 if unbinding */
		"pu":<uint>,	/* previous unit ID if unbinding, 0 if binding */
		"f":<uint>	/* timeout unbinding, 4 - yes */
	}],
	...
}
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2021 Gurtam