Criar Cerca Rápida (Círculo)
This is a shortcut for fast creating a circle geofence and binding the device to the geofence.
ℹ️
For creating polygon geofences, please refer to Create Geofence and Modify Device Geofence Settings to bind the device to the geofence(s).
Requisição HTTP
| Método | Caminho (Path) |
|---|---|
POST | /api/geofence/create |
Parâmetros de Consulta (Query)
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
access_token | string | true | O token de acesso. |
imei | string | true | IMEI de destino. |
efencename | string | true | O nome da cerca virtual. |
alarmtype | int | true | Alarm type (0: out, 1: in, 2: in/out). |
longitude | double | true | A longitude do centro da cerca virtual. |
latitude | double | true | A latitude do centro da cerca virtual. |
radius | int | true | Raio da cerca em metros (Intervalo: 100 a 5000). |
Exemplo
Request URL:
POST https://api.brasilsatgps.com.br/api/geofence/create?access_token={ACCESS_TOKEN}&imei=358899123456789&efencename=home&alarmtype=0&longitude=113.97196&latitude=22.56861&radius=300Exemplo de Resposta JSON
{
"code": 0
}