EstimatedDriveInfo

Information about a drive recorded by the Fairmatic SDK. The drive may have started manually by the application or due to Fairmatic auto drive detection. This is available with FairmaticBroadcastReceiver.onDriveEnd callback.

When FairmaticDriveType is not equal to FairmaticDriveType.INVALID, the info provided in this object will be superceded by AnalyzedDriveInfo provided via the com.fairmatic.sdk.classes.FairmaticBroadcastReceiver.onDriveAnalyzed callback for the same DriveInfo.driveId. The application should save the info provided here and update it when the com.fairmatic.sdk.classes.FairmaticBroadcastReceiver.onDriveAnalyzed callback is invoked.

Inherited properties

Link copied to clipboard

The average speed of the drive in meters per second. If we could not estimate the average speed due to lack of reliable location data, this value will be -1.

Link copied to clipboard

The distance traversed in this drive in meters.

Link copied to clipboard

An identifier for this drive that was recorded. This identifier is unique for a particular FairmaticConfiguration.driverId with which the SDK is initialized.

Link copied to clipboard

The type of drive. This also determines what other properties of this object are set.

Link copied to clipboard

The end timestamp of the drive in milliseconds since epoch.

Link copied to clipboard

A list of FairmaticEvent detected by the sdk for this drive.

Link copied to clipboard

The extrapolated details for this drive. This will be available only in the AnalyzedDriveInfo. Available if DriveInfo.getDriveType is FairmaticDriveType.DRIVE and the SDK was able to reliably determine the extrapolation details. Otherwise this is null.

Link copied to clipboard

The insurance period in which the drive was detected. This will be null if there is no insurance period associated with this drive. events

Link copied to clipboard

The maximum speed of the drive in meters per second. If we could not estimate the maximum speed due to lack of reliable location data, this value will be -1.

Link copied to clipboard

Position of the phone or device for the majority of the drive.

Link copied to clipboard

Session id is specified by the enclosing application when it wants to record a session. This will be null if there is no session is associated with this drive.

Link copied to clipboard

The start timestamp of the drive in milliseconds since epoch.

Link copied to clipboard

Tracking id is specified by the enclosing application when it wants to com.fairmatic.sdk.Fairmatic.startDrive manually. This will be null if no tracking id was specified.

Link copied to clipboard

Whether the user was a driver or a passenger. Driver/Passenger detection is disabled by default. Talk to your contact in Fairmatic to enable this feature. Driver/Passenger detection will only be available in AnalyzedDriveInfo.

Link copied to clipboard

The type of vehicle. Only present when driveType is FairmaticDriveType.DRIVE.

Link copied to clipboard

A list of DriveInfo.Warning for this drive.

Link copied to clipboard

A list of LocationPointWithTimestamp objects corresponding to this drive in increasing order of timestamp. The first point corresponds to drive start location and last to drive end location. This is a sampled approximation of the drive which gives an indication of the path taken by the driver. It is not the full detailed location data of the drive. If no waypoints are recorded during the drive, then this is an empty array.