Driver alert in case of crash

Principle

The crash detection feature includes an interface that informs the driver that a crash has been detected so he can confirm it to automatically call for help if needed.

Enable crash detection feedback

By default, the crash detection feedback is disabled. When this feature is enabled, the crash detection feedback displays a notification or a screen and calls an emergency number when a crash is confirmed by the driver.
To enable crash detection feedback, the following method needs to be called:
Kotlin
Java
1
DriveKitTripAnalysisUI.enableCrashFeedback(
2
roadsideAssistanceNumber: String,
3
config: DKCrashFeedbackConfig)
Copied!
1
DriveKitTripAnalysisUI.INSTANCE.enableCrashFeedback(
2
String roadsideAssistanceNumber,
3
DKCrashFeedbackConfig config)
Copied!
With the following parameters:
Attribute
Type
Description
roadsideAssistanceNumber
String
Emergency number that will be called if there is a crash.
config
DKCrashFeedbackConfig
Configuration of the feedback.
DKCrashFeedbackConfig
Attribute
Type
Description
notification
DKCrashFeedbackNotification
Configuration of the notification.
crashVelocityThreshold
Double
Minimal speed when the crash occurred. For example, if crashVelocityThreshold is set at 20 km/h and a crash occurred at 10 km/h, feedback will not be sent to the user. Default value : 0.0 km/h
DKCrashFeedbackNotification
Attribute
Type
Description
title
String
Title that appears on the notification.
message
String
Message that appears on the notification
crashAlert
DKCrashAlert
Object that describes how the user will be noticed when a feedback is asked. Default value : SILENCE
DKCrashAlert
Attribute
Description
SILENCE
Device will not vibrate or ring
VIBRATION
Device will vibrate
SOUND_AND_VIBRATION
Device will ring and vibrate

Disable Feedback crash detection

To disable crash detection feedback, call the following method:
Kotlin
Java
1
DriveKitTripAnalysisUI.disableCrashFeedback()
Copied!
1
DriveKitTripAnalysisUI.INSTANCE.disableCrashFeedback();
Copied!

Test your integration with the crash simulator

In order to check your integration and test the crash detection feature, you can use the trip simulator described in section simulate a crash during a trip.
To simulate a car accident, simply install the trip simulator and start a simulation with the configuration TRIP_WITH_CRASH.

Register to the Crash Notification API

Our platform can share a collision report that contains information about the accident.
This information can be used to:
  • trigger the intervention of an assistance service,
  • and initiate the accident management process.
If you want to know more and if you need to collect crash data on your platform, we invite you to contact us by email at [email protected]