Список транспортных средств

 
 
Пример:
https://<address>/api/api.php?cmd=list
 
Параметры:
cmd : list
 
Формат запрошенных данных :
 
Массив транспортных средств
"list": [
{
"agentid": 9003,
"imei": "356307046873054",
"typeid": 1
"type": "Car"
"vehicle number": "Х444МР123"
"folder": "Geo-Center OOO"
"created_time": 1414224633
"current_mileage": 881
"status": {
"unixtimestamp": "1418744535"
"lat": "43.5562"
"lon": "39.9084"
"speed": 0,
"dir": 268
"alt": 246
"satsinview": 16
"sensors": {
"Ignition sensor": "off",
"Fuel sensor": "44.1 l"
 
 
Ответ
{
"code": 0,
"message": "OK",
"list": [
{
"agentid": 130584,
"veh_id": 130584,
"imei": "1231233321",
"id": 1,
"type": "Car",
"model": "Ford EcoSport",
"vehicle number": "1231233321",
"folder": "HOME",
"created_time": 1629804548,
"current_mileage": 0,
"driver_name": "",
"driver_phone": "",
"info": "11",
"status": {
"unixtimestamp": 1629804548,
"lat": 0,
"lon": 0,
"speed": 0,
"dir": 0,
"alt": 0,
"satsinview": null
},
"sensors": [],
"sensors_status": []
},
{
"agent": 140201,
"veh_id": 140201,
"imei": "863069057412810",
"id": 1,
"type": "Car",
"model": "Ford EcoSport",
"vehicle number": "863069057412810",
"folder": "HOME",
"created_time": 1645867571,
"current_mileage": 0,
"driver_name": "",
"driver_phone": "",
"Info": "",
"status": {
"unixtimestamp": "1646052707",
"lat": "50.4784366",
"lon": "4.3267416",
"speed": 0,
"dir": 0,
"alt": 0,
"satsinview": zero
},
"sensors": [],
"sensors_status": []
}, etc.
 
Важно отметить, для серверов с node к примеру BLADE,  нужно в API запросе дополнительно указывать node.