Inherits from NSObject
Declared in ZendriveDriveStartInfo.h

Overview

Information about start of a drive.

Tasks

Properties

__deprecated

The start location of the drive.

@property (nonatomic, strong, nullable) ZendriveLocationPoint *__deprecated

Discussion

If the drive is automatically detected by Zendrive SDK, then this location is approximate and close to the start location but not exactly the start location.

Warning: This is deprecated. Use firstObject of waypoints instead.

Declared In

ZendriveDriveStartInfo.h

distance

The distance of the trip in metres

@property (nonatomic, assign) double distance

Declared In

ZendriveDriveStartInfo.h

driveId

The unique Id for this drive

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

Declared In

ZendriveDriveStartInfo.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

ZendriveDriveStartInfo.h

startTimestamp

The start timestamp of trip in milliseconds since epoch

@property (nonatomic, assign) long long startTimestamp

Declared In

ZendriveDriveStartInfo.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

ZendriveDriveStartInfo.h

waypoints

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

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

Discussion

This array contains a series of ZendriveLocationPoint which approximate the path taken by the driver. This is not the detailed location data but rather a sample representing route geometry.

Note: The array might be empty if no accurate gps location is determined till [ZendriveDelegateProtocol processStartOfDrive:] call.

Declared In

ZendriveDriveStartInfo.h