Type alias DriveInfo

DriveInfo: {
    averageSpeed: number;
    distanceMeters: number;
    driveId: number;
    driveType: ZendriveDriveType;
    endTimeMillis: number;
    eventRatings: ZendriveEventRatings;
    events: ZendriveEvent[];
    extrapolationDetails?: ZendriveExtrapolationDetails;
    insurancePeriod: ZendriveInsurancePeriod;
    maxSpeed: number;
    phonePosition: PhonePosition;
    score: DriveScore;
    sessionId?: string;
    startTimeMillis: number;
    trackingId?: string;
    userMode: ZendriveUserMode;
    vehicleType?: ZendriveVehicleType;
    warnings: DriveInfoWarning[];
    waypoints: LocationPointWithTimestamp[];
}

Information about a drive recorded by the Zendrive SDK. The drive may have started manually by the application or due to Zendrive auto drive detection.

Type declaration

  • averageSpeed: number

    The average speed of the drive in meters per second.

  • distanceMeters: number

    The total distance of the drive in meters.

  • driveId: number

    An identifier for this drive that was recorded.

  • driveType: ZendriveDriveType

    The type of drive.

  • endTimeMillis: number

    The end timestamp of the drive in milliseconds since epoch.

  • eventRatings: ZendriveEventRatings

    Ratings associated with various event types for this drive. See [[ZendriveEventType]]

  • events: ZendriveEvent[]

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

  • Optional extrapolationDetails?: ZendriveExtrapolationDetails

    Extrapolation details of the trip.

  • insurancePeriod: ZendriveInsurancePeriod

    The insurance period in which the drive was detected.

  • maxSpeed: number

    The maximum speed of the drive in meters per second.

  • phonePosition: PhonePosition

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

  • score: DriveScore

    The driving behaviour score for this drive.

  • Optional sessionId?: string

    Session id is specified by the enclosing application when it wants to record a session. See [[Zendrive.startSession]]

  • startTimeMillis: number

    The start timestamp of the drive in milliseconds since epoch.

  • Optional trackingId?: string

    Tracking id is specified by the enclosing application when it wants to start a drive manually. See [[Zendrive.startDrive]]

  • userMode: ZendriveUserMode

    Whether the user was a driver or a passenger.

  • Optional vehicleType?: ZendriveVehicleType

    The vehicle type of the drive, either car or motorcycle.

  • warnings: DriveInfoWarning[]

    A list of warnings for this drive.

  • waypoints: LocationPointWithTimestamp[]

    A list of [[LocationPointWithTimestamp]] objects corresponding to this drive in increasing order of timestamp.