The automatic trip detection feature is compliant with iBeacon Bluetooth beacons. A beacon is a Bluetooth low energy (BLE) device that broadcasts a universally unique identifier. This signal can be detected by the SDK and used to trigger the trip analysis.
In addition, the beacon is a smart and cost-effective solution for identifying the vehicle in which the driver is travelling.
The DriveKit SDK is fully compatible with the Apple iBeacon™ standard.
You can add beacon identifiers to Trip Analysis SDK by calling the following method:
val beacon = BeaconData("699ebc80-e1f3-11e3-9a0f-0cf3ee3bc012", 1, 2)DriveKitTripAnalysis.setBeacons(listOf(beacon))
List<BeaconData> beacons = new ArrayList<>();BeaconData beacon = new BeaconData("699ebc80-e1f3-11e3-9a0f-0cf3ee3bc012", 1, 2);beacons.add(beacons);DriveKitTripAnalysis.INSTANCE.setBeacons(beacons);
A detailed description of
BeaconData class is available here.
To avoid the recording of unwanted trips (trips performed outside the vehicle where the beacon is placed), it is possible to automatically cancel the trip if the beacon is not "seen" several times during the trip. Generally, a trip will be cancelled in less than 6 minutes if the beacon is not in the vehicle.
By default, this setting is disabled but you can enable it by calling the following method:
To disable this settings, call the same method with the parameter set to