Driver Safety API

Operations for retrieving a driver’s detailed safety events and daily safety event counts for a 24 hour period within a REVEAL account.

Get Driver Safety by Driver

Retrieves a driver’s detailed safety report for a 24 hour period. The integration user provides a Driver Number and a requested date. Only the date part is used; the time of day is ignored.

get
https://api.us.vzconnect.com/da/v1/driversafety/{drivernumber}

Query Parameters

requesteddatestring(date-time)required

The date to query. Only the date part is used; the time of day is ignored.

Example:2017-05-23T00:00:00Z

Path Parameters

drivernumberstringrequired

The Driver Number is associated with a driver record in REVEAL and is unique within an account.

Example:111925

Response

application/json

Successfully retrieved safety events for the driver.

SafetyIncidentList

A detailed unsafe driving behavior event captured by the GPS device.

Addressobject

Contains the global standards for address components.

Show Child Parameters
DriverNumberstring

Driver Number is the unique identifier for Drivers created within REVEAL.

Example:111925

IncidentDateTimeUtcstring(date-time)

The date and time in UTC that the safety event occurred.

Example:2017-05-23T11:57:07

IncidentDurationInSecondsnumber

The time in seconds for the duration of the safety event. Note, not all safety incident types will show a duration in seconds.

Example:2

IncidentSeveritystring

Harsh driving events recorded by REVEAL will be categorized as MODERATE or SEVERE.

Allowed values:ModerateSevere

Example:Moderate

IncidentStartingSpeedInKphnumber(double)

The harsh driving incident’s starting speed value in kilometers per hour.

Example:30.600000381469727

IncidentTypestring

Incident type, for example HardBraking, HardAcceleration (quick start) or HardCornering.

Example:HardBraking

Latitudenumber(double)

The latitude coordinates for the incident location.

Example:27.108964

Longitudenumber(double)

The longitude coordinates for the incident location.

Example:-80.25919

VehicleNamestring

The Vehicle Name within REVEAL for the vehicle that reported the incident.

Example:WO 1087

VehicleNumberstring | null

The Vehicle Number is an optional field in REVEAL. If using APIs, the Vehicle Number is often required as the vehicle’s unique identifier. However, this field can be returned as NULL.

Example:1087

 
application/json

Get Driver Safety Count by Driver

Retrieves a driver’s summary safety report for a 24 hour period. This method does not provide precise details for all safety events recorded by the driver but a count of any that occurred for the day selected. The integration user provides a Driver Number and a requested date. Only the date part is used; the time of day is ignored.

get
https://api.us.vzconnect.com/da/v1/driversafety/{drivernumber}/counts

Query Parameters

requesteddatestring(date-time)required

The date to query. Only the date part is used; the time of day is ignored.

Example:2017-05-23T00:00:00Z

Path Parameters

drivernumberstringrequired

The Driver Number is associated with a driver record in REVEAL and is unique within an account.

Example:111925

Response

application/json

Successfully retrieved safety event counts for the driver.

SafetyCount

A driver’s summary safety report for a 24 hour period.

DriverNumberstring

Driver Number is the unique identifier for Drivers created within REVEAL.

Example:111925

IncidentDateTimeUtcstring(date-time)

The date and time in UTC for the queried period.

Example:2017-05-23T00:00:00

VehicleIncidentCountsarray[object]

Summary counts of safety incidents for a vehicle associated with the driver over the 24 hour period.

Show Child Parameters
 
application/json

SafetyCount

object

A driver’s summary safety report for a 24 hour period.

DriverNumberstring

Driver Number is the unique identifier for Drivers created within REVEAL.

Example:111925

IncidentDateTimeUtcstring(date-time)

The date and time in UTC for the queried period.

Example:2017-05-23T00:00:00

VehicleIncidentCountsarray[object]

Summary counts of safety incidents for a vehicle associated with the driver over the 24 hour period.

Show Child Parameters
Example

SafetyIncidentList

array

A list of detailed safety incidents.

Addressobject

Contains the global standards for address components.

Show Child Parameters
DriverNumberstring

Driver Number is the unique identifier for Drivers created within REVEAL.

Example:111925

IncidentDateTimeUtcstring(date-time)

The date and time in UTC that the safety event occurred.

Example:2017-05-23T11:57:07

IncidentDurationInSecondsnumber

The time in seconds for the duration of the safety event. Note, not all safety incident types will show a duration in seconds.

Example:2

IncidentSeveritystring

Harsh driving events recorded by REVEAL will be categorized as MODERATE or SEVERE.

Allowed values:ModerateSevere

Example:Moderate

IncidentStartingSpeedInKphnumber(double)

The harsh driving incident’s starting speed value in kilometers per hour.

Example:30.600000381469727

IncidentTypestring

Incident type, for example HardBraking, HardAcceleration (quick start) or HardCornering.

Example:HardBraking

Latitudenumber(double)

The latitude coordinates for the incident location.

Example:27.108964

Longitudenumber(double)

The longitude coordinates for the incident location.

Example:-80.25919

VehicleNamestring

The Vehicle Name within REVEAL for the vehicle that reported the incident.

Example:WO 1087

VehicleNumberstring

The Vehicle Number is an optional field in REVEAL. If using APIs, the Vehicle Number is often required as the vehicle’s unique identifier. However, this field can be returned as NULL.

Example:1087