TNTripsInfo
@objcMembers
public class TNTripsInfo : TNBasicTripsInfo
Statistics of the trips.
-
The total duration of all trips in seconds.
Declaration
Swift
public let totalDuration: Int
-
The total moving duration (gps speed is larger than 0) in seconds.
Declaration
Swift
public let totalMovingDuration: Int
-
The total night duration in seconds (local time 10pm - 4am).
Declaration
Swift
public let totalNightDuration: Int
-
The total night distance in meters (local time 10pm - 4am).
Declaration
Swift
public let totalNightDistance: Double
-
The total night moving duration (gps speed is larger than 0) in seconds (local time 10pm - 4am).
Declaration
Swift
public let totalNightMovingDuration: Int
-
first trip start time of aggregated trips info
Declaration
Swift
public let firstTripStartTime: Date?
-
last trip start time of aggregated trips info
Declaration
Swift
public let lastTripStartTime: Date?
-
Undocumented
Declaration
Swift
public required init(from decoder: Decoder) throws
-
init(totalTripCount:
totalDuration: totalDistance: totalMovingDuration: totalNightDuration: totalNightDistance: totalNightMovingDuration: firstTripStartTime: lastTripStartTime: ) Undocumented
Declaration
Swift
public init(totalTripCount: Int = 0, totalDuration: Int = 0, totalDistance: Double = 0.0, totalMovingDuration: Int = 0, totalNightDuration: Int = 0, totalNightDistance: Double = 0.0, totalNightMovingDuration: Int = 0, firstTripStartTime: Date? = nil, lastTripStartTime: Date? = nil)