Last Trip
Get Last Vehicle Trip Data
Query Parameters
vehicleId number required
Responses
- 200
- 400
- 401
Success
application/json
Schema
Example (from schema)
Vehicle Moving
Engine Off
Schema
- Array [
- ]
message string required
data object
totalTrip number required
totalHourStart string required
totalHourStop string required
motionStatus string required
summaryTrips object[]
startTime string required
stopTime string required
vehicleId number required
tripMileage number required
startLong number required
startLat number required
stopLong number required
stopLat number required
maxSpeed number required
type string required
driver object
fullName string required
driverId number required
totalHourStart string required
totalHourStop string required
{
"message": "string",
"data": {
"totalTrip": 0,
"totalHourStart": "string",
"totalHourStop": "string",
"motionStatus": "string",
"summaryTrips": [
{
"startTime": "string",
"stopTime": "string",
"vehicleId": 0,
"tripMileage": 0,
"startLong": 0,
"startLat": 0,
"stopLong": 0,
"stopLat": 0,
"maxSpeed": 0,
"type": "string",
"driver": {
"fullName": "string"
},
"driverId": 0,
"totalHourStart": "string",
"totalHourStop": "string"
}
]
}
}
{
"message": "Success",
"data": {
"totalTrip": 0.13,
"totalHourStart": "00:19:30",
"totalHourStop": "00:28:08",
"motionStatus": "M",
"summaryTrips": {
"startTime": "2023-04-14T09:15:19.000Z",
"stopTime": "2023-04-14T09:34:49.000Z",
"vehicleId": 3447,
"driverId": 1,
"tripMileage": 0.13,
"startLong": null,
"startLat": null,
"stopLong": null,
"stopLat": null,
"maxSpeed": 15,
"type": null,
"totalHourStart": "00:19:30",
"totalHourStop": "00:28:08",
"driver": null
}
}
}
{
"message": "Success",
"data": {
"totalTrip": null,
"totalHourStart": null,
"totalHourStop": null,
"motionStatus": null,
"summaryTrips": null
}
}
Bad Request
application/json
Schema
Example (from schema)
Expired Token
Bad Token
Schema
code string
message string
detail string
{
"code": "string",
"message": "string",
"detail": "string"
}
{
"code": "E-V1/1-03",
"message": "An error occurred while executing query",
"detail": "Context creation failed: jwt expired"
}
{
"code": "E-V1/1-03",
"message": "An error occurred while executing query",
"detail": "Context creation failed: jwt malformed"
}
Unauthorized Request
application/json
Schema
Example (from schema)
Example
Schema
code string
message string
{
"code": "string",
"message": "string"
}
{
"code": "E-G1/1-01",
"message": "Authentication token is required"
}
Loading...