geofence.locate

The geofence.locate command is used to find and return geofences containing a point.

TR50 Request


                        {
  "cmd": {
    "command": "geofence.locate",
    "params": {
      "point": [26.394916, -80.112571]
    }
  }
}
      

Request Parameters

Name

Type

Required

Description

point

Array

Yes

A point consists of two floats: [latitude, longitude]

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": {
      "result": [
        "boca",
        "ils",
        "fau"
      ]
    }
  }
}
      

Response Parameters

Name

Type

Description

result

String

Array of geofence keys that contain the point.