geofence.find

The geofence.find command is used to find and return a geofence.

TR50 Request


                        {
  "cmd": {
    "command": "geofence.find",
    "params": {
      "key": "mygeofence"
    }
  }
}
      

Request Parameters

Name

Type

Required

Description

key

String

Yes

The key of the geofence to find.

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": {
      "key": "mygeofence",
      "name": "My Geofence",
      "radius": 0.5,
      "points": [
        [
          26.394916,
          -80.112571
        ]
      ],
      "createdBy": "admin@example.com",
      "createdOn": "2014-03-25T11:03:02.318-04:00",
      "updatedBy": "admin@example.com",
      "updatedOn": "2014-03-25T11:03:02.318-04:00"
    }
  }
}
      

Response Parameters

Name

Type

Description

key

String

The key of the geofence.

name

String

The name of the geofence.

radius

Float

The radius of a radial geofence, in kilometers.

points

Array

Contains either the center of a radial geofence or the points defining a polygonal geofence.

tags

Array

The tags associated with the geofence.

createdBy

String

 The creator of the geofence.

createdOn

String

The creation timestamp of the geofence.

updatedBy

String

The updater of the geofence.

updatedOn

String

The update timestamp of the geofence.