deviceTripsByDeviceId
POST
/v2/openapi/device/gpsTripRequest
Body Params application/json
deviceId
string | null
required
start
string | null
required
UTC = 0 yyyy-MM-dd HH:mm:ss
end
string | null
required
UTC = 0 yyyy-MM-dd HH:mm:ss
type
string | null
optional
1 gps 2lbs 3wifi
Can be used multiple times, separated can be empty, default all if not passed
Example
{
"deviceId": "string",
"start": "string",
"end": "string",
"type": "string"
}
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
code
integer | null
optional
data
object (ApiDeviceGpsTripVO)
optional
totalMileage
number | null
optional
totalTime
integer | null
optional
avgSpeed
number | null
optional
maxSpeed
number | null
optional
deviceData
array[object (ApiDeviceTripVO) {13}] | null
optional
msg
string | null
optional
Example
{
"code": 0,
"data": {
"totalMileage": 0,
"totalTime": 0,
"avgSpeed": 0,
"maxSpeed": 0,
"deviceData": [
{
"tripId": "",
"deviceId": "",
"startTime": "",
"startLat": 0,
"startLon": 0,
"pointType": "",
"endTime": "",
"endLat": 0,
"endLon": 0,
"totalTime": 0,
"totalMileage": 0,
"avgSpeed": 0,
"maxSpeed": 0
}
]
},
"msg": ""
}
Last modified: 2 个月前