get_tag_bindings

The get_tag_bindings function is used to receive information about tag assignments and separations during a specified time interval. The tags are used when assigning or separating passengers.

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

Parameters

NameDescription
resourceIdResource ID.
unitIdUnit ID (0 — all units).
tagIdTag ID (0 — all tags).
timeFromThe beginning of the interval.
timeToThe end of the interval.

Returned result

Copied!
{
	"<text>":[{	/* tag ID */
		"t":<unit>,	/* time of assignment/separation */
		"u":<uint>,	/* unit ID in case of assignment, 0 in case of separation */
		"pu":<uint>,	/* previous unit ID in case of separation, 0 in case of assignment */
		"f":<uint>	/* timeout of separation, 4 — yes */
	}, ...],
	...
}

Possible error codes:

CodeDescription
7Failed to fetch the resource with the desired ACL (ADF_ACL_AVL_RES_VIEW_TAGS and ADF_ACL_ITEM_EXECUTE_REPORTS), or failed to fetch the unit with the desired ACL (ADF_ACL_ITEM_VIEW).
4Failed to fetch the list of tags or wrong input parameters.
Download PDF file
Download Word document

See also