GeoFence

Description

GET [API_URL]/rpt_geofence

Obtain the entry and exit of the devices in geofences.

Call limit: 1 request every 15 seconds

Cache live time: 300 seconds

Headers

Name
Value

Content-Type

application/json

tenant

logicsat

Authorization

Bearer eyJhbGciOiJIUzI1NiIsInR...

Body

Name
Type
Description

pagination

IPagination

devices

string[]

devices name

geogences

string[]

geofences

idletime

integer

idle time in geofence

startdate*

datetime

from (YYYY-MM-DDTHH:mm:ss)

enddate*

datetime

to (YYYY-MM-DDTHH:mm:ss)

export interface IApiDev_RptGeofenceFilter {
    pagination?: IPageInfo;
    devices?: string[];
    geofences?: string[];
    idletime?: number;
    startdate: string;
    enddate: string;
}

Response

export interface IApiDev_RptGeofence {
    full_count?: number;
    device_name?: string;
    people?: string;
    datetime_in?: string;
    datetime_out?: string;
    idle?: number;
    geofence?: string;
}
[
    {
        "full_count": "3",
        "device_name": "Renault",
        "people": null,
        "datetime_in": "2024-06-20T00:04:33",
        "datetime_out": "2024-06-20 15:34:58",
        "idle": 930,
        "geofence": "Torres Nuevo Centro"
    }
]

curl --location --request GET '[API_URL]/rpt_geogence' \
--header 'tenant: logicsat' \
--header 'Authorization: Bearer {your_token}' \
--header 'Content-Type: application/json' \
--data '{
    "pagination": {
        "limit": 1,
        "offset": 0
    },
    "devices": [],
    "geofences": [],
    "idletime": null,
    "startdate": "2024-06-20",
    "enddate": "2024-06-22"
}'

Last updated