Structures
The following structures are available globally.
-
A
RSDDistanceRecord
is aCodable
implementation ofRSDSampleRecord
that can be used to record CoreLocation samples for use in determining distance travelled.- example:
See more// Example json for a codable record. let json = """ { "uptime" : 99652.677386361029, "relativeDistance" : 2.1164507282484935, "verticalAccuracy" : 3, "horizontalAccuracy" : 6, "stepPath" : "Cardio 12MT/run/runDistance", "course" : 76.873546882061802, "totalDistance" : 63.484948023273581, "speed" : 1.0289180278778076, "timestampDate" : "2018-01-04T23:49:34.135-08:00", "timestamp" : 210.47070598602295, "altitude" : 23.375564581136974 } """.data(using: .utf8)! // our data in native (JSON) format
Declaration
Swift
public struct RSDDistanceRecord : RSDSampleRecord, RSDDelimiterSeparatedEncodable