Ranking
The ranking service is used to retrieve the ranking of all drivers belonging to a group. This service returns the ranking of the current month and the previous month.
To be ranked, a driver must have completed at least 5 trips and travelled 20 km in a month.
The ranking of the current month is updated every 10 minutes.
The ranking of the previous month is frozen on the 1st day of the current month.
If you have your admin API key, you can try the API via this link.
Get driver's ranking
GET
https://service.drivequant.com/v3/drivekit/admin/drivers/ranking
Return drivers ranking for current and previous month
Query Parameters
Name | Type | Description |
---|---|---|
type* | String | Ranking type, can be safety, eco-driving, distraction, speeding |
groupLabel | String | Group of drivers whose ranking is required. If not set, you get all drivers of your team. |
Headers
Name | Type | Description |
---|---|---|
DriveKit-Admin-API-Key* | String | Admin API Key |
You may not have access to all the types. Please ask your DriveQuant contact if you need more information.
Response
The table below summarizes the list of ranking data.
Field | Type | Description |
---|---|---|
currentMonth |
| Drivers with their rank in the group in the current month (see MonthRanking) |
previousMonth |
| Drivers with their rank in the group in the previous month (see MonthRanking) |
type |
| Ranking type set in the service call. Can be safety, eco-driving, distraction, speeding |
MonthRanking
MonthRanking contains the list of drivers in a group with their rank.
Field | Type | Description |
---|---|---|
monthNumber |
| Month number of the ranking period (1 -> january, 2 -> february, ...) |
driverRankedNumber |
| Number of ranked drivers |
driverRanked |
| List of ranked drivers (see UserRanked) |
driverNotRanked |
| List of unranked drivers (i.e. who have not driven the minimum distance and completed the minimum number of trips) (see UserNotRanked) |
UserRanked
Field | Type | Description |
---|---|---|
userId |
| Driver's unique identifier |
firstname |
| Driver's firstname |
lastname |
| Driver's lastname |
pseudo |
| Driver's pseudo |
rank |
| Driver's rank |
score |
| Driver's score |
distance |
| Monthly driving distance (in km) |
tripNumber |
| Monthly number of trips |
UserNotRanked
Field | Type | Description |
---|---|---|
userId |
| Driver's unique identifier |
firstname |
| Driver's firstname |
lastname |
| Driver's lastname |
pseudo |
| Driver's pseudo |
distance |
| Monthly driving distance (in km) |
tripNumber |
| Monthly number of trips |
Last updated