DrivingInsightsApi
Use this API to receive driving insights about vehicular transports.
DrivingInsightsApi API
getAverageOverallSafetyScore()
getAverageOverallSafetyScore()
Returns the average overall safety score for a given set of parameters, or
null
if the score is not available.Note: calling this method on an uninitialized SDK will throw an SdkException.
params
The parameters for which to calculate the average overall safety score. See SafetyScoreRequestParameters.
getCallWhileMovingEvents()
getCallWhileMovingEvents()
Returns the call while moving events for a completed transport.
Note: calling this method on an uninitialized SDK will throw an SdkException.
transportId
The ID of the desired transport.
getDrivingInsights()
getDrivingInsights()
Returns the driving insights for a given transport, or
null
if there are no driving insights or the transport ID is invalid.Note: calling this method on an uninitialized SDK will throw an SdkException.
transportId
The ID of the desired transport.
getHarshDrivingEvents()
getHarshDrivingEvents()
Returns the harsh driving events for a completed transport.
Note: calling this method on an uninitialized SDK will throw an SdkException.
transportId
The ID of the desired transport.
getPhoneUsageEvents()
getPhoneUsageEvents()
Returns the phone usage events for a completed transport.
Note: calling this method on an uninitialized SDK will throw an SdkException.
transportId
The ID of the desired transport.
getSpeedingEvents()
getSpeedingEvents()
Returns the speeding events for a completed transport.
Note: calling this method on an uninitialized SDK will throw an SdkException.
transportId
The ID of the desired transport.
setDrivingInsightsReadyListener()
setDrivingInsightsReadyListener()
Sets a listener that will be invoked when the driving insights for a completed transport becomes ready.
Note: calling this method on an uninitialized SDK will throw an SdkException.
listener
A DrivingInsightsReadyListener
to receive the driving insights. Set null
to remove a previously set listener.
Last updated