Inherits from NSObject
Declared in ZendriveDriveInfo.h

Overview

ZendriveDriveInfo

Wrapper for meta-information related to a drive.

Tasks

Properties

averageSpeed

The average speed of trip in metres/second

@property (nonatomic, assign) double averageSpeed

Declared In

ZendriveDriveInfo.h

distance

The distance of the trip in metres

@property (nonatomic, assign) double distance

Declared In

ZendriveDriveInfo.h

driveId

The unique Id for this drive

@property (nonatomic, readonly, nonnull) NSString *driveId

Declared In

ZendriveDriveInfo.h

driveType

The type of the drive. This decides what other info parameters will be populated.

@property (nonatomic, assign) ZendriveDriveType driveType

Discussion

A drive callback will be sent even for falsely detected drives or for non automobile trips (Eg. biking, public transport).

Declared In

ZendriveDriveInfo.h

endTimestamp

The end timestamp of trip in milliseconds since epoch

@property (nonatomic, assign) long long endTimestamp

Declared In

ZendriveDriveInfo.h

events

A list of ZendriveEvent objects for this trip in increasing order of timestamp.

@property (nonatomic, strong, nonnull) NSArray *events

Discussion

In case of no events in the trip an empty list is returned.

Declared In

ZendriveDriveInfo.h

maxSpeed

The maximum speed of trip in metres/second

@property (nonatomic, assign) double maxSpeed

Discussion

If we do not receive any accurate location data during the drive, this property would be set to -1

Declared In

ZendriveDriveInfo.h

score

The driving behaviour score for this trip.

@property (nonatomic, strong, nonnull) ZendriveDriveScore *score

Declared In

ZendriveDriveInfo.h

sessionId

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

@property (nonatomic, strong, nullable) NSString *sessionId

Discussion

sessionId will be nil if there is no session associated with that drive.

Declared In

ZendriveDriveInfo.h

startTimestamp

The start timestamp of trip in milliseconds since epoch.

@property (nonatomic, assign) long long startTimestamp

Declared In

ZendriveDriveInfo.h

trackingId

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

@property (nonatomic, strong, nullable) NSString *trackingId

Discussion

This may be the case for example in a taxi cab application that would know when to start a drive based on when a meter gets flagged. trackingId will be nil in case of auto detected drives.

Declared In

ZendriveDriveInfo.h

userMode

Whether the user was a driver or a passenger.

@property (nonatomic, assign) ZendriveUserMode userMode

Discussion

Driver/Passenger detection is disabled by default. Talk to your contact in Zendrive to enable this feature. Only present when driveType is ZendriveDriveTypeDrive and the SDK was able to determine with confidence whether the user was a driver or a passenger.

If the SDK was not able to determine the user mode, this field is ZendriveUserModeUnavailable.

Declared In

ZendriveDriveInfo.h

waypoints

A list of ZendriveLocationPoint objects corresponding to this trip in increasing order of timestamp. The first point corresponds to trip start location and last to trip end location.

@property (nonatomic, strong, nonnull) NSArray *waypoints

Discussion

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, this is an empty array.

Declared In

ZendriveDriveInfo.h