List of objects
This API provides information about vehicles, including their current location.
How to get data
Method
POST
Request address
To get the data, use the address: https://<server_address>/api/CRIT/api.php?node=<node_id>
Request parameters
To receive the data, you must send an authorized request and specify the function:
-
Username — user login
-
Password — user password
-
functionName=api_objectlist — command to get the list of objects
-
node — the node number where the command should be executed
Response format: an array of vehicle objects.
Example request
https://<server_address>/api/CRIT/api.php?node=6
Content-Type: multipart/form-data
Username=TestName
Password= 123456
functionName=api_objectlist
|
Response
[
{
"IMEI": "352016704092097",
"PLATE": "5209",
"NAME": "",
"LATITUDE": 29.7682433,
"LONGITUDE": 39.9979749
},
{
"IMEI": "352016703961657",
"PLATE": "6561",
"NAME": "",
"LATITUDE": 25.9131066,
"LONGITUDE": 46.4645949
}
]
|
The API response returns an array of vehicle objects. Each object contains:
-
IMEI — identifier of the tracker installed on the vehicle
-
PLATE — vehicle license plate number
-
NAME — vehicle name
-
LATITUDE — current latitude of the vehicle location
-
LONGITUDE — current longitude of the vehicle location