DrivingInsightsApi
Last updated
Last updated
Use this API to receive driving insights about vehicular transports.
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 .
params
getCallWhileMovingEvents()
Returns the events for a completed, non-provisional transport. See to learn more about what a provisional transport is.
Note: calling this method on an uninitialized SDK will throw an .
transportId
The ID of the desired transport.
getDrivingInsights()
Returns the for a given non-provisional transport, or
null
if there are no driving insights, the transport ID is invalid, or the transport is a provisional one. See to learn more about what a provisional transport is.Note: calling this method on an uninitialized SDK will throw an .
transportId
The ID of the desired transport.
getHarshDrivingEvents()
transportId
The ID of the desired transport.
getPhoneUsageEvents()
transportId
The ID of the desired transport.
getSpeedingEvents()
transportId
The ID of the desired transport.
setDrivingInsightsReadyListener()
listener
The parameters for which to calculate the average overall safety score. See .
Returns the for a completed, non-provisional transport. See to learn more about what a provisional transport is.
Note: calling this method on an uninitialized SDK will throw an .
Returns the for a completed, non-provisional transport. See to learn more about what a provisional transport is.
Note: calling this method on an uninitialized SDK will throw an .
Returns the for a completed, non-provisional transport. See to learn more about what a provisional transport is.
Note: calling this method on an uninitialized SDK will throw an .
Sets a listener that will be invoked when the driving insights for a completed, non-provisional transport becomes ready. See to learn more about what a provisional transport is.
Note: calling this method on an uninitialized SDK will throw an .
A to receive the driving insights. Set null
to remove a previously set listener.