Get the last status data of the user's vehicle
The user can get the last status data of the user vehicle including the last positioning data through this interface
API info
Url: /web_api/v1/realtime/last_vehicle_status_data
Method: GET
Content-Type:x-www-form-urlencoded
Request parameter
None
Response Data (type:array(object))
field | type | desc |
---|---|---|
lastGpsData | object | last positioning |
lastOnlineTime | integer | Last online time,UTC timestamp |
lastOfflineTime | integer | Last offline time,UTC timestamp |
isOnline | bool | Online or not |
devVersion | string | Device version |
deviceManufacturer | integer | Device manufacturer type 0: unknown,1:xilian,2: other |
Example
Request example
url
http://localhost:8080/web_api/v1/realtime/last_vehicle_status_data?_t=1699079916856
http://localhost:8080/web_api/v1/realtime/last_vehicle_status_data?_t=1699079916856
Response example
json
{
"hdr": {
"code": 200,
"message": "success"
},
"data": [{
"lastGpsData": {
"devNo": "13000000002",
"devVersion": "S51_1.00.05_836B5_1.12",
"time": 1698163204,
"longitude": 115147200,
"latitude": 22816183,
"speed": 870,
"direction": 244,
"netSignal": 20,
"satelliteNum": 30,
"deviceMileage": 306800,
"dataFlow": 10,
"altitude": 22,
"statusFlag": 4980739,
"alarmFlag": 0,
"videoAlarmFlag": 1,
"videoLost": 8,
"videoMask": 0,
"storageStatus": 0,
"vehicleExternStatus": 0,
"oilValue": 10,
"dataValidFlag": 319,
"adasInfo": {
"alarmID": 1,
"alarmType": 1,
"alarmLevel": 1,
"alarmInfoFlag": "12_1698163233_1_3"
},
"dsmInfo": {
"alarmID": 1,
"alarmType": 1,
"alarmLevel": 1,
"alarmInfoFlag": "12_1698163233_1_3",
"tiredValue": 10
},
"tpmsInfo": {},
"bsdInfo": {
"alarmID": 1,
"alarmType": 1,
"alarmInfoFlag": "12_1698163233_1_3"
},
"vehicleGuid": 2,
"platformMileage": 2656144,
"protocolType": 1,
"vehicleNo": "13000000002",
"receiveTime": 1698163233,
"adminGuid": 3,
"appStatusFlag": 1,
"stopDriveStartTime": 1698163233,
"curDayMileage": 1000,
"driveTimeLen": 100
},
"lastOnlineTime": 1699079916,
"lastOfflineTime": 1699079916,
"isOnline": true,
"devVersion": "1.0.0",
"deviceManufacturer": 1
}]
}
{
"hdr": {
"code": 200,
"message": "success"
},
"data": [{
"lastGpsData": {
"devNo": "13000000002",
"devVersion": "S51_1.00.05_836B5_1.12",
"time": 1698163204,
"longitude": 115147200,
"latitude": 22816183,
"speed": 870,
"direction": 244,
"netSignal": 20,
"satelliteNum": 30,
"deviceMileage": 306800,
"dataFlow": 10,
"altitude": 22,
"statusFlag": 4980739,
"alarmFlag": 0,
"videoAlarmFlag": 1,
"videoLost": 8,
"videoMask": 0,
"storageStatus": 0,
"vehicleExternStatus": 0,
"oilValue": 10,
"dataValidFlag": 319,
"adasInfo": {
"alarmID": 1,
"alarmType": 1,
"alarmLevel": 1,
"alarmInfoFlag": "12_1698163233_1_3"
},
"dsmInfo": {
"alarmID": 1,
"alarmType": 1,
"alarmLevel": 1,
"alarmInfoFlag": "12_1698163233_1_3",
"tiredValue": 10
},
"tpmsInfo": {},
"bsdInfo": {
"alarmID": 1,
"alarmType": 1,
"alarmInfoFlag": "12_1698163233_1_3"
},
"vehicleGuid": 2,
"platformMileage": 2656144,
"protocolType": 1,
"vehicleNo": "13000000002",
"receiveTime": 1698163233,
"adminGuid": 3,
"appStatusFlag": 1,
"stopDriveStartTime": 1698163233,
"curDayMileage": 1000,
"driveTimeLen": 100
},
"lastOnlineTime": 1699079916,
"lastOfflineTime": 1699079916,
"isOnline": true,
"devVersion": "1.0.0",
"deviceManufacturer": 1
}]
}