DriveType
@objc(ZDDriveType)
public enum DriveType : Int32
The type of the drive returned from DriveInfo.driveType
.
This decides what other DriveInfo
parameters will be populated.
A drive callback can be sent as a false alarm or when we detect that the user was not
actually driving but moved using other means of transport.
-
Sometimes, the SDK detects that a trip is invalid after it has been started. In these cases, the values for
DriveInfo.waypoints
,DriveInfo.events
,DriveInfo.score
,DriveInfo.maxSpeed
andDriveInfo.averageSpeed
will have invalid values.Declaration
Swift
case invalid
-
This was not a driving trip. For e.g bike and train rides will fall under this trip type. The
DriveInfo
will haveDriveInfo.waypoints
,DriveInfo.maxSpeed
,DriveInfo.averageSpeed
,DriveInfo.events
andDriveInfo.score
.Declaration
Swift
case nonDriving
-
This trip was taken in a car.
If the SDK determined the user to be a driver or a passenger, the value will be available in
DriveInfo.userMode
The
DriveInfo
will haveDriveInfo.waypoints
,DriveInfo.maxSpeed
,DriveInfo.averageSpeed
,DriveInfo.events
andDriveInfo.score
.Declaration
Swift
case drive