For the complete documentation index, see llms.txt. This page is also available as Markdown.

Driving Insights

To learn about the Driving Insights feature, check out this page.

Prerequisites

The Driving Insights feature relies on additional library dependencies alongside the core SDK dependency. To start using this feature, you must first add these dependencies to you project.

iOS

This feature is included in the main SDK framework. No additional dependencies are needed.

Android

Open your app build.gradle file and add the driving insights dependency.

app/build.gradle
dependencies {
    implementation(platform('com.sentiance:sdk-bom:<sentiance-version>'))
    implementation('com.sentiance:sdk-driving-insights')
}
React Native
Flutter

This feature can be added by installing the following packages:

Utilize the Driving Insights APIs

In this section, you can find examples of how to query the Sentiance SDK for driving insights, safe driving scores, detailed driving events. You will also find how to register to be notified of driving insights, once it becomes available.

Query for Driving Insights

Driving Insights become available a few minutes after a transport ends. Once the user stops driving, the SDK takes a few minutes to make sure that the drive is over, and then proceeds to prepare the insights.

To be notified of when the insights are ready, you can subscribe for Driving Insights updates.

To retrieve driving insights, use the getDrivingInsights method.

Query For Driving Events

The Sentiance SDK offers more granular driving insights. You can retrieve detailed events, such as speeding and harsh driving, as shown below.

Subscribe for Driving Insights Updates

Checkout Real-time Listeners to read more about implementing the SDK's Listeners

Last updated