Getting statuses of all vehicles
Example:
https://<address>/backend/api/api.php?cmd=vehicles&account_id
Parameters:
cmd : vehicles
accountid : account_id
Request:
https://panel.pilot-gps.com/backend/api/api.php?cmd=vehicles&account_id=2238
Answer:
Array of vehicles
{
"data": [
{
"active": 1,
"agentid": 2914,
"configuration": "Teltonika FM1100",
"current_mileage": 69332,
"dir": 0,
"driver_name": " SSS",
"driver_phone": " ",
"folder": "ЮФО",
"lat": "47.200989",
"lon": "39.634436",
"model": "HYUNDAI IX35",
"msisdn": "79818775160",
"on": 1,
"partner_price": "0.00",
"price": "0.00",
"sats": 7,
"speed": 0,
"ts": "1457709039",
"type": "Static",
"uniqid": "356307045913463",
"vehiclenumber": "IX35"
},
{
"active": 1,
"agentid": 8026,
"configuration": "Teltonika FM4200",
"current_mileage": 17441,
"dir": 0,
"driver_name": " ",
"driver_phone": " ",
"folder": "ЮФО",
"lat": "47.318118",
"lon": "39.995648",
"model": "",
"msisdn": "79110181596",
"on": 1,
"partner_price": "100.00",
"price": "350.00",
"sats": 9,
"speed": 0,
"ts": "1457726726",
"type": "Car",
"uniqid": "354330031297057",
"vehiclenumber": "nex"
}
]