LocationMetadata
Location metadata structure. All fields are optional so various capture formats (2D-only GPS, no compass, minimal logs) decode without keyNotFound.
Declaration
struct LocationMetadataConstructors
init(from decoder: any Decoder) throws
Summary
Properties
| Name | Type | Summary |
|---|---|---|
| let altitude | Double? | - |
| let altitudeAccuracy | Double? | - |
| let heading | Double? | - |
| let headingAccuracy | Double? | - |
| let headingTimestamp | Double? | - |
| let latitude | Double? | - |
| let longitude | Double? | - |
| let positionAccuracy | Double? | - |
| let positionTimestamp | Double? | - |
Relationships
conforms to: Swift.Encodable
conforms to: Swift.Decodable
Creates a new instance by decoding from the given decoder.
This initializer throws an error if reading from the decoder fails, or
if the data read is corrupted or otherwise invalid.
- Parameter decoder: The decoder to read data from.