iOS

Integration

To add the Trip Simulator module to your app, add this dependency in the Podfile:
1
pod 'DriveKitTripSimulator'
Copied!
This component has been designed to facilitate preliminary testing and should never remain in your production app.

Usage

DriveQuant offers the possibility of running simulations from a list of preset trips. After integrating and activating the trip simulation component, you can select a preset trip from those described in the table below. Once the simulation is launched, the Trip Analysis SDK will receive the configured callbacks automatically.
Name
Duration (s)
Distance (m)
Description
shortTrip
527
1794
Trip too short that does not allow to rate the driver's behavior
mixedTrip
897
12210
A 15-minute mixed trip in urban and suburban areas
cityTrip
1174
8 427
A 20-minute city trip
suburbanTrip
1752
30126
A 30-minute trip performed in a suburban environment mostly
highwayTrip
3345
101840
A 55-minute highway trip
trainTrip
640
14985
Trip recorded in a train to test the alternative transportation modes detection
boatTrip
24612
2459
Trip recorded in a boat to test the alternative transportation modes detection

Simulate a trip

To simulate a trip, you just need to send the desired trip to the start method:
1
import DriveKitTripSimulatorModule
2
DriveKitTripSimulator.shared.start(<The_PresetTrip_you_want>)
Copied!

Stop the simulation

To stop the simulation of a trip, it is necessary to call the stop() method:
1
import DriveKitTripSimulatorModule
2
DriveKitTripSimulator.shared.stop()
Copied!
Last modified 1yr ago