๐Trip Related
Basic Details
Request URL
{BASE_URL}/dashboard/v1/trips?pageSize=10&pageNum=0
Request Body
{
"sortBy": "desc",
"sortOn": "startTime",
"filter": [
{
"key": "appTripId",
"requestFilterType": "EQUAL",
"value": "111_1"
}
]
}
Response
[{
"userId": 3009,
"userName": "Sample User",
"tripId": 3281000,
"overallTripScore": 99.6,
"startTime": "2022-09-17T09:40:33.000+0000",
"startLocation": "18.412275, -10.862034999999999",
"endTime": "2022-09-17T09:52:38.000+0000",
"endLocation": "18.39862833333333, -10.860763333333333",
"accountName": "sample",
"companyName": "sample",
"gender": "male",
"isCoPassenger": false,
"extraTripScores": {
"SPEEDING": {
"score": 100.0,
},
"HARD_ACCELERATION": {
"score": 99.6,
},
"DISTRACTION": {
"score": 100.0,
},
"HARD_TURN": {
"score": null,
},
"LANE_CHANGE": {
"score": null,
},
"DROWSY": {
"score": 100.0,
},
"HARD_BRAKING": {
"score": 100.0,
}
},
"totalDistance": 5.2,
"addressStartString": "Sample Address",
"addressEndString": "Sample Address",
"extraKeys": {
"tripType": 0,
"device": "android",
"version": "100169",
"sdkVersion": "3.0.5",
"build": "3.0.5",
"locationPermissionAuthorizationStatus": "ALWAYS_ALLOWED",
"lastEvent": {
"appEventId": "3009_1663407633206_725",
"eventId": 124746404,
"accountName": null,
"companyName": null,
"latitude": 18.39862833333333,
"timeZone": "Europe/Madrid",
"source": "Event_Processor",
"gpsTimestamp": 1663408357000,
"userId": 3009,
"speed": 0,
"speedAccuracy": 0.9,
"locationWeatherProviderId": null,
"tripState": "INTERMEDIATE_STOP",
"bearingAccuracy": 179.9,
"bearingAngle": 126.89,
"appTripId": "1000_1663407633206",
"locationTrafficProviderId": null,
"eventTimestamp": 1663408358343,
"longitude": -10.860763333333333
},
"endCause": "MANUAL_TRIP_END",
"speedStats": {
"maxSpeed": 22.631308,
"minSpeed": 0,
"avgSpeed": 6.914516018622576
}
},
"tripDuration": 725,
"starRating": 5,
"vehicleType": "CAR",
}]
2. Trip Stats
POST: {BASE_URL}/dashboard/api/v1/trips/interventions/stats
?pageSize=100&pageNum=0
Request Body
{
'sortBy': 'desc',
'sortOn': 'startTime',
'filter': [{
'key': 'appTripId',
'requestFilterType': 'EQUAL',
'value': appTripId
}]
}
Response
{
"HARD_BRAKING": {
"count": 0
},
"HARD_ACCELERATION": {
"count": 0
},
"HARD_TURN": {
"count": 0
},
"LANE_CHANGE": {
"count": 0
},
"SPEEDING": {
"count": 0
},
"DROWSY": {
"count": 0
},
"DISTRACTION": {
"count": 0
}
}
3. Interventions
POST: {BASE_URL}/dashboard/v1
/trips/interventions?pageSize=1000&pageNum=0
Body
{
'sortBy': 'desc',
'sortOn': 'startTime',
'filter': [{
'key': 'appTripId',
'requestFilterType': 'EQUAL',
'value': appTripId
}]
}
Response
{}
Last updated
Was this helpful?