LogoLogo
ProductsUse casesDocsSupport
  • Introducing DriveKit
  • DriveKit Guides
  • Get started with drivekit
    • Trip recording lifecycle
    • iOS
      • 🚀Quick start
      • Advanced configurations
      • References
      • iOS DriveKit Demo App
    • Android
      • 🚀Quick start
      • Advanced configurations
      • References
      • Android DriveKit Demo App
      • Android 15 Migration guide
      • Android 14 Migration guide
      • Troubleshooting
  • Trip analysis
    • Introduction
    • iOS
      • Permissions
      • Trip management
      • TripListener
      • Crash Detection
      • Beacon usage
      • Bluetooth usage
      • Custom metadata
      • References (iOS)
    • Android
      • Runtime permissions
      • Trip management
      • TripListener
      • Crash Detection
      • Beacon usage
      • Bluetooth usage
      • Custom metadata
      • References (Android)
    • User interface
      • iOS
        • Get started
        • Working hours
        • Driver alert in case of crash
        • Trip recording widget
        • Location sharing
      • Android
        • Get started
        • Working hours
        • Driver alert in case of crash
        • Trip recording widget
        • Location sharing
    • REST services
      • Trip
      • References
    • Trip Simulator
      • iOS
      • Android
  • PERMISSIONS UTILS
    • Introduction
    • User interface
      • iOS
        • Get started
        • Main configurations
      • Android
        • Get started
        • Main configurations
  • COMMON UI
    • Introduction
    • iOS
      • Get started
    • Android
      • Get started
    • References
  • DRIVER DATA
    • Introduction
    • iOS
      • Get started
      • References (iOS)
    • Android
      • Get started
      • References (Android)
    • User interface
      • iOS
        • Get started
        • Advanced configurations
        • Trips widgets
        • My Synthesis
        • My Driver Profile
      • Android
        • Get Started
        • Advanced configurations
        • Trips widgets
        • My Synthesis
        • My Driver Profile
  • Driver Data Timeline UI
    • Introduction
    • iOS
      • Get started
    • Android
      • Get started
  • Vehicle
    • Introduction
    • iOS
      • Get started
      • Vehicle management
      • Beacon management
      • Bluetooth device management
      • Odometer
      • References (iOS)
    • Android
      • Get started
      • Vehicle management
      • Beacon management
      • Bluetooth device management
      • Odometer
      • References (Android)
    • User interface
      • iOS
        • Get started
        • Main configurations
        • Advanced configurations
      • Android
        • Get started
        • Main configurations
        • Advanced configurations
  • DRIVER ACHIEVEMENT
    • Introduction
    • iOS
      • Get started
    • Android
      • Get Started
    • User interface
      • iOS
      • Android
  • CHALLENGE
    • Introduction
    • Important challenge rules
    • iOS
      • Get started
      • References (iOS)
    • Android
      • Get started
      • References (Android)
    • User interface
      • iOS
        • Get started
      • Android
        • Get started
  • GROUP
    • Introduction
    • iOS
      • Get started
    • Android
      • Get started
  • React Native
    • Get started
    • Integration
  • Flutter
    • Get started
    • Integration
  • Push services
    • Introduction
    • Push Trip Data
    • Push Deleted trip
    • Push Crash Data
    • Push Diagnosis Data
  • ADMIN SERVICES
    • Beacon
      • Add
      • Replace
      • Delete
      • Configuration
    • Challenges
      • List of challenges
      • Challenge details
      • Registered users
      • Challenge ranking
      • Users' progress
      • Definitions
    • Customer
      • Activity timeline
    • Driver
      • Timeline
      • Synthesis
      • Identity
      • Status
      • Add or update a metadata
      • Vehicles
      • Profile
      • Application diagnoses
    • Drivers
      • Account
      • Statistics
      • Ranking
      • Expired accounts
    • Group
      • Timeline
      • Synthesis
    • Trips
      • Add or update a metadata
      • Delete a metadata
    • Vehicle
      • Create
      • Characteristics
      • Configuration
      • Statistics
      • Update mileage
      • Tire and brake wear update
      • References
  • Crashes
    • Annotate a crash
    • Revoke crash location URL
  • ENTERPRISE SERVICES
    • Introduction
    • Teams
      • Create a team
      • List of teams
      • Enable or disable a team
    • Hyper-admins
      • Create a hyper-admin
      • List of hyper-admins
      • Delete a hyper-admin
    • Monitoring
      • Get a push trip data report
      • Get a push crash data report
      • Request to retry failed trips
      • Request to retry failed crashes
      • Get the status of a task
  • Release notes
    • Changelog
      • iOS
      • Android
      • UI iOS
      • UI Android
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. ADMIN SERVICES
  2. Drivers

Statistics

PreviousAccountNextRanking

Last updated 6 months ago

Was this helpful?

The statistics service provides the average scores of all the drivers registered to your company.

For each driver, you will find useful information such as the mileage, number of trips as well as weekly, monthly and all time average driving scores.

If you have your admin API key, you can try the API via this .

Query parameters

Field
Type
Description

pageSize

int

Number of elements to return (default: 1000).

Min: 1000 Max: 20000

pageNumber

int

Position of the page to return, the first page has the position : 0 (default: 0) Min: 0

groupLabel

string

Group name (default: All)

minTripNumber

int

Minimum number of trip registered for a driver (default: 0)

Response

The table below summarizes the list of elements included in the response.

Field
Type
Description

data

array[object]

totalElements

int

Total number of statistics that can be retrieved

pageNumber

int

Position of the requested page (0 for the first page)

pageSize

int

Requested page size (between 1000 and 20000)

hasNext

boolean

Indicates whether there are more results to fetch

Data array

The data array contains a list of driver's statistics.

Field
Type
Description

driverId

string

Driver's unique identifier (auto-generated)

userId

string

Driver's unique identifier set to initialize the DriveKit SDK

firstname

string

Driver's firstname

lastname

string

Driver's lastname

firstTrip

string

First trip date

Date format: YYYY-MM-dd’T’HH:mm:ss.SSSZ

lastTrip

string

Last trip date

Date format: YYYY-MM-dd’T’HH:mm:ss.SSSZ

numberTripScored

int

Number of trips analyzed

numberTripTotal

int

Total number of trips

numberTripDeleted

int

Number of trips deleted

distance

double

Distance analyzed (km)

distanceTotal

double

Total distance (km)

distanceDeleted

double

Deleted distance (km)

duration

double

Analyzed duration (h)

durationTotal

double

Total duration (h)

durationDeleted

double

Deleted duration (h)

periodicScores

Average driving scores (see below)

Periodic scores

The periodicScores object includes the driver's average scores over different time ranges.

Field
Type
Description

weeklyEfficiency

double

Average eco-driving score based on trips performed during the current week

weeklySafety

double

Average safety score based on trips performed during the current week

weeklyPhoneDistraction

double

Average distraction score based on trips performed during the current week

weeklySpeeding

double

Average speeding score based on trips performed during the current week

weeklyDistance

double

Total driving distance during the current week (in km)

monthlyEfficiency

double

Average eco-driving score based on trips performed during the current month

monthlySafety

double

Average safety score based on trips performed during the current month

monthlyPhoneDistraction

double

Average distraction score based on trips performed during the current month

monthlySpeeding

double

Average speeding score based on trips performed during the current month

monthlyDistance

double

Total driving distance during the current week (in km)

allTimeEfficiency

double

Overall average eco-driving score

allTimeSafety

double

Overall average safety score

allTimePhoneDistraction

double

Overall average distraction score

allTimeSpeeding

double

Overall average speeding score

allTimeDistance

double

Overall distance (in km)

Error response

Unauthorized

If the request does not contain a valid authentication token, the service will answer with a http code 401.

Bad request

If the request cannot be processed, the service will answer with a http code 400. The response body will contain more details about the error:

Message Key
Message
Description

dk_invalid_parameter_value

Invalid value for parameter(s) '[...]'

The page size or the page number are not within the authorized range

invalid_group_label

Invalid group label

The requested group does not exist

invalid_min_trip_number

Invalid minimum trip number

The requested minimum trip number is invalid

List of requested statistics (see )

below
PeriodicScores
link

Get drivers statistics

get

Get the statistics for selected drivers registered to your company. The results are paginated.

Query parameters
pageSizeintegerOptional

Number of elements to return

pageNumberintegerOptional

Position of the page to return, the first page has the position : 0

Default: 0
groupLabelstringOptional

Label of the group to retrieve

Default: all
minTripNumberintegerOptional

Minimum number of trips

Default: 0
Header parameters
DriveKit-Admin-API-KeystringRequired

Drivekit Admin API key

Responses
200
OK
application/json
400
Invalid group label, or minTripNumber
application/json
401
Unauthorized
application/json
get
GET /v3/drivekit/admin/drivers/statistics/page HTTP/1.1
Host: service.drivequant.com
DriveKit-Admin-API-Key: text
Accept: */*
{
  "driverId": "595a1ada24aa9a0007990054",
  "userId": "olivier.grondin@drivequant.com",
  "firstname": "Olivier",
  "lastname": "Grondin",
  "firstTrip": "2017-07-25T18:30:55.065Z",
  "lastTrip": "2021-05-17T13:02:23.000Z",
  "numberTripScored": 1514,
  "numberTripTotal": 2108,
  "numberTripDeleted": 8,
  "distance": 19150.3664,
  "distanceTotal": 19625.2875,
  "distanceDeleted": 41.3889,
  "duration": 26029.4916666667,
  "durationTotal": 28002.9583333334,
  "durationDeleted": 85.1,
  "periodicScores": {
    "weeklyEfficiency": 7.4,
    "weeklySafety": 9,
    "weeklyPhoneDistraction": 6.07,
    "weeklySpeeding": 3.05,
    "weeklyDistance": 64.166,
    "monthlyEfficiency": 7.15,
    "monthlySafety": 9.21,
    "monthlyPhoneDistraction": 6.96,
    "monthlySpeeding": 7.64,
    "monthlyDistance": 296.989,
    "allTimeEfficiency": 7.53,
    "allTimeSafety": 8.62,
    "allTimePhoneDistraction": 6.85,
    "allTimeSpeeding": 6.64,
    "allTimeDistance": 21444.4796
  }
}
  • GETGet drivers statistics
  • Query parameters
  • Response
  • Data array
  • Periodic scores
  • Error response
  • Unauthorized
  • Bad request