ActiveDriveInfo

Information about the currently ongoing drive recorded by the Fairmatic SDK. The drive may have started manually by the application or due to Fairmatic auto drive detection.

Properties

Link copied to clipboard

The current location of the vehicle. May be null if we don't have a reliable current location of the vehicle.

Link copied to clipboard

The current speed of the vehicle in meters/second. May be -1 if we don't have a reliable current speed of the vehicle.

Link copied to clipboard

The distance traversed so far 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. After the trip ends and is uploaded to Fairmatic server, this id can be used as the "trip_id" to query information about a trip from the Fairmatic Analytics API.

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.

Link copied to clipboard

Session id is optionally 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 optionally specified by the enclosing application when it wants to start a drive manually. This will be null if no tracking id was specified.