ZendriveDriveInfo
@interface ZendriveDriveInfo : NSObject
ZendriveDriveInfo
Wrapper for meta-information related to a drive.
-
The unique Id for this drive
Declaration
Objective-C
@property (nonatomic, nonnull) NSString *driveId;
-
The type of the drive. This decides what other info parameters will be populated.
A drive callback will be sent even for falsely detected drives or for non automobile trips (Eg. biking, public transport).
Declaration
Objective-C
@property (nonatomic) ZendriveDriveType driveType;
-
Whether the user was a driver or a passenger.
Driver/Passenger detection is disabled by default. Talk to your contact in
Zendrive
to enable this feature. Only present whendriveType
isZendriveDriveTypeDrive
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
.Declaration
Objective-C
@property (nonatomic) ZendriveUserMode userMode;
-
The insurance period for this drive
Declaration
Objective-C
@property (nonatomic) ZendriveInsurancePeriod insurancePeriod;
-
The start timestamp of trip in milliseconds since epoch.
Declaration
Objective-C
@property (nonatomic) long long startTimestamp;
-
The end timestamp of trip in milliseconds since epoch
Declaration
Objective-C
@property (nonatomic) long long endTimestamp;
-
The average speed of trip in metres/second
Declaration
Objective-C
@property (nonatomic) double averageSpeed;
-
The maximum speed of trip in metres/second
If we do not receive any accurate location data during the drive, this property would be set to -1
Declaration
Objective-C
@property (nonatomic) double maxSpeed;
-
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 and last to trip end location.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.
Declaration
Objective-C
@property (nonatomic, strong, nonnull) 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;
-
A list of
ZendriveEvent
objects for this trip in increasing order of timestamp.In case of no events in the trip an empty list is returned.
Declaration
Objective-C
@property (nonatomic, strong, nonnull) NSArray *events;
-
The driving behaviour score for this trip.
Declaration
Objective-C
@property (nonatomic, strong, nonnull) ZendriveDriveScore *score;
-
The ratings of individual events for this trip
Declaration
Objective-C
@property (nonatomic, strong, nonnull) ZendriveEventRatings *eventRatings;
-
The position of the phone during this trip.
Declaration
Objective-C
@property (nonatomic) ZendrivePhonePosition phonePosition;
-
A list of
ZendriveTripWarning
objects for this trip.In case of no warnings in the trip an empty list is returned.
Declaration
Objective-C
@property (nonatomic, strong, nonnull) NSArray<ZendriveTripWarning *> *tripWarnings;
-
The type of vehicle. If
driveType
is notZendriveDriveType.ZendriveDriveTypeDrive
then it will be set toZendriveVehicleType.ZendriveVehicleTypeUnknown
. NOTE: This value will only be populated in-[ZendriveDelegateProtocol processAnalysisOfDrive:]
callback.Declaration
Objective-C
@property (nonatomic) ZendriveVehicleType vehicleType;
-
The extrapolated details for a drive. If
driveType
is notZendriveDriveType.ZendriveDriveTypeDrive
then it will be set to nil.Declaration
Objective-C
@property (nonatomic, strong, nullable) ZendriveExtrapolationDetails *extrapolationDetails;
-
The vehicle tagging details of this drive Available only if a drive is tagged with vehicle. Otherwise it is nil.
Declaration
Objective-C
@property (nonatomic, strong, nullable) ZendriveVehicleTaggingDetails *vehicleTaggingDetails;