DriveCategory
@objc(ZDDriveCategory)
public enum DriveCategory : UInt
The category that best indicates the type of trip
-
Indicates that the trip was taken in a car
Declaration
Swift
case car = 0 -
Indicates that the trip was taken in a car and the user was the driver
Declaration
Swift
case carDriver = 1 -
Indicates that the trip was taken in a car and the user was a passenger
Declaration
Swift
case carPassenger = 2 -
Indicates that the trip was taken in a train or a subway
Declaration
Swift
case train = 3 -
Indicates that the trip was taken in a bus
Declaration
Swift
case bus = 4 -
Indicates that the trip was taken on a bicycle
Declaration
Swift
case bicycle = 5 -
Indicates that the trip was taken on a motorcycle
Declaration
Swift
case motorcycle = 6 -
Indicates that the trip was taken on foot (either walking or running)
Declaration
Swift
case foot = 7 -
Indicates that the trip was taken using some form of public transit (bus/train/subway/tram etc)
Declaration
Swift
case transit = 8 -
Indicates that the trip was taken using some form of air travel
Declaration
Swift
case flight = 9 -
Indicates that there wasn’t enough movement and this shouldn’t have been detected as a trip
Declaration
Swift
case invalid = 97 -
Indicates that the trip was not taken in a car. This includes everything other than
DriveCategory.carDeclaration
Swift
case notCar = 98 -
Fallback when the above options do not cover the use case.
This maybe used when the mode of transport is not covered above (eg. snow-mobile) or when enough information is not available to put it in one of the above categories
Declaration
Swift
case other = 99
DriveCategory Enumeration Reference