geofence.tag.cloud
The geofence.tag.cloud command is used to generate a tag cloud for geofences.
TR50 Request
{
"cmd": {
"command": "geofence.tag.cloud",
"params": {
"tags": ["tag1", "tag2"],
"keys": ["mygeofence1", "mygeofence2"]
}
}
}
Request Parameters
Name |
Type |
Required |
Description |
---|---|---|---|
tags |
Array |
|
An array of tags. The result will be limited to the tags associated with geofences that already have the indicated tags. |
keys |
Array |
|
An array of geofence keys. The result will be limited to the tags associated with geofences identified by the specified geofence keys. |
TR50 Response
If the command is sent successfully a success message and the tag cloud object is returned. Otherwise, an error and error message will be returned.
{
"cmd": {
"success": true,
"params": {
"result": [
{
"home": 2
},
{
"no data": 3
},
{
"old": 1
},
{
"qwerty": 1
},
{
"tag1": 1
},
{
"tag2": 1
}
]
}
}
}
Response Parameters
Name |
Type |
Description |
---|---|---|
result |
Array |
An array of objects. Each object will be a tag and the number of geofences that have that tag. |