TNTripsInfo

@objcMembers
public class TNTripsInfo : NSObject, Codable

Statistics of the trips.

  • The total number of trips.

    Declaration

    Swift

    public let totalTripCount: Int
  • The total duration of all trips in seconds.

    Declaration

    Swift

    public let totalDuration: Int
  • The total distance of all trips in meters.

    Declaration

    Swift

    public let totalDistance: Double
  • 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
  • Declaration

    Swift

    public required init(from decoder: Decoder) throws
  • 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)