Structures

The following structures are available globally.

  • Declaration

    Swift

    public struct XMLNode : Equatable, Hashable
  • Describes a climb section within a track.

    See more

    Declaration

    Swift

    public struct Climb : Hashable, Sendable
  • Basic type for storing a geo location.

    See more

    Declaration

    Swift

    public struct Coordinate : GeoCoordinate, HeightMappable, Hashable, Sendable
  • A value describing a graph of a track. Contains metadata such as a GPXTracks distance, elevation and a height-map.

    See more

    Declaration

    Swift

    public struct TrackGraph : Hashable, Sendable
  • A value describing an entry in a TrackGraphs height-map. It has the total distance in meters up to that point in the track along with the elevation in meters above sea level at that given point in a track (imagine the distance as the value along the x-axis in a 2D-coordinate graph, the elevation as the y-value).

    See more

    Declaration

    Swift

    public struct DistanceHeight : Hashable, Sendable
  • A value describing a track of geo locations. It has the recorded TrackPoints, along with metadata of the track, such as recorded date, title, elevation gain, distance, height-map and bounds.

    See more

    Declaration

    Swift

    public struct GPXTrack : Hashable, Sendable
  • A 2D-bounding box describing the area enclosing a track.

    See more

    Declaration

    Swift

    public struct GeoBounds : Hashable, Codable, Sendable
  • A value describing a grade of a track. A TrackGraph has an array of GradeSegment from start to its distance each with a given length and the grade at this distance.

    See more

    Declaration

    Swift

    public struct GradeSegment : Sendable
    extension GradeSegment: Equatable
    extension GradeSegment: Hashable
  • A value describing a single data point in a GPXTrack. A TrackPoint has the latitude, longitude and elevation data along with meta data such as a timestamp or power values.

    See more

    Declaration

    Swift

    public struct TrackPoint : Hashable, Sendable
    extension TrackPoint: GeoCoordinate
    extension TrackPoint: HeightMappable
  • Value type describing a logical segment in a TrackGraph. A TrackGraph consists of a collection of TrackSegments. Each has a coordinate (latitude, longitude & elevation) and the distance (in meters) to its preceding segment point.

    See more

    Declaration

    Swift

    public struct TrackSegment : Hashable, Sendable
  • Value type describing a single Waypoint defined within a GPXTrack. A Waypoint has a location consisting of latitude, longitude and some metadata, e.g. name and description.

    See more

    Declaration

    Swift

    public struct Waypoint : Hashable, Sendable