ZendriveDriveStartInfo
@interface ZendriveDriveStartInfo : NSObject
Information about start of a drive.
-
The unique Id for this drive
Declaration
Objective-C
@property (nonatomic, nonnull) NSString *driveId;
-
The start timestamp of trip in milliseconds since epoch
Declaration
Objective-C
@property (nonatomic) long long startTimestamp;
-
The insurance period for this drive
Declaration
Objective-C
@property (nonatomic) ZendriveInsurancePeriod insurancePeriod;
-
Deprecated
The start location of the drive.
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 ofwaypoints
instead.Declaration
Objective-C
@property (nonatomic, strong, nullable) ZendriveLocationPoint *startLocation;
-
The distance of the trip in metres
Declaration
Objective-C
@property (nonatomic) double distance;
-
A list of
ZendriveLocationPoint
objects corresponding to this trip in increasing order of timestamp. The first point corresponds to trip start location.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.Declaration
Objective-C
@property (nonatomic, strong, nullable) NSArray *waypoints;
-
Tracking id is specified by the enclosing application when it wants to start a drive manually by calling
+[Zendrive startManualDrive:completionHandler]
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.
Declaration
Objective-C
@property (nonatomic, strong, nullable) NSString *trackingId;
-
Session id is specified by the enclosing application when it wants to record a session using
+[Zendrive startSession:]
sessionId will be nil if there is no session associated with that drive.
Declaration
Objective-C
@property (nonatomic, strong, nullable) NSString *sessionId;