GPXTrackSegment
public final class GPXTrackSegment : GPXElement, Codable
A track segment that holds data on all track points in the particular segment.
Does not hold additional information by default.
-
Track points stored in current segment.
Declaration
Swift
@available(*, deprecated, renamed: "points") public var trackpoints: [GPXTrackPoint] { get } -
Track points stored in current segment.
Declaration
Swift
public var points: [GPXTrackPoint] -
Custom Extensions, if needed.
Declaration
Swift
public var extensions: GPXExtensions? -
Default Initializer.
Declaration
Swift
public required init() -
Initializes a new trackpoint to segment, and returns the trackpoint.
Declaration
Swift
public func newTrackpointWith(latitude: Double, longitude: Double) -> GPXTrackPoint -
Adds a single track point to this track segment.
Declaration
Swift
public func add(trackpoint: GPXTrackPoint?) -
Adds an array of track points to this track segment.
Declaration
Swift
public func add(trackpoints: [GPXTrackPoint]) -
Removes a track point from this track segment.
Declaration
Swift
public func remove(trackpoint: GPXTrackPoint)
View on GitHub
GPXTrackSegment Class Reference