GET api/v4/driverscore?userID={userID}&token={token}&serviceID={serviceID}&from={from}&to={to}
Maps to GetDriverScore from the V4 web service
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| userID |
The ID returned from a successful login |
unsigned integer |
Required |
| token |
The authentication token returned from a successful login |
string |
Required |
| serviceID |
The service id of the vehicle being queried |
unsigned integer |
Required |
| from |
The start date being queried yyyyMMddHHmmss |
string |
Required |
| to |
The end date being queried yyyyMMddHHmmss |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
A driver score object
DriverScore| Name | Description | Type | Additional information |
|---|---|---|---|
| DurationSeconds |
The duration driving in seconds |
decimal number |
None. |
| Distance |
The distance traveled in meters |
decimal number |
None. |
| VehReg |
The vehicle registration |
string |
None. |
| RPMScore |
The RPM score |
integer |
None. |
| IdlingScore |
The idling score |
decimal number |
None. |
| AccelerationScore |
The acceleration score |
decimal number |
None. |
| DeccelerationScore |
The deceleration score |
decimal number |
None. |
| SpeedScore |
The speed score |
decimal number |
None. |
| TotalScore |
The total score |
decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{
"DurationSeconds": 1.1,
"Distance": 2.1,
"VehReg": "sample string 3",
"RPMScore": 4,
"IdlingScore": 5.1,
"AccelerationScore": 6.1,
"DeccelerationScore": 7.1,
"SpeedScore": 8.1,
"TotalScore": 9.1
}
application/xml, text/xml
Sample:
<DriverScore xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <DurationSeconds>1.1</DurationSeconds> <Distance>2.1</Distance> <VehReg>sample string 3</VehReg> <RPMScore>4</RPMScore> <IdlingScore>5.1</IdlingScore> <AccelerationScore>6.1</AccelerationScore> <DeccelerationScore>7.1</DeccelerationScore> <SpeedScore>8.1</SpeedScore> <TotalScore>9.1</TotalScore> </DriverScore>