geofence.things.within
The geofence.things.within command is used to find and return a list of things within a request geofence geofence.
TR50 Request
{
"cmd": {
"command": "geofence.things.within",
"params": {
"key": "boca"
}
}
}
Request Parameters
Name |
Type |
Required |
Description |
---|---|---|---|
id |
String |
|
Id of the geofence. Required if key is not provided. |
key |
String |
|
Key of the geofence. Required if id is not provided. |
TR50 Response
If the command is sent successfully a success message is returned. Otherwise, an error and error message will be returned.
{
"cmd": {
"success": true,
"params": [
"key1",
"key2"
]
}
}
Response Parameters
Name |
Type |
Description |
---|---|---|
result |
Array |
An array of thing keys that are in the geofence. |