GPXPointSegment
open class GPXPointSegment : GPXElement, Codable
- This class (
ptsegType) is added to conform with the GPX v1.1 schema.
ptsegType of GPX schema. Not supported in GPXRoot, nor GPXParser’s parsing.
-
points of segment
Declaration
Swift
public var points: [GPXPoint] -
Default initializer.
Declaration
Swift
public required init() -
Adds a new point to segment, and returns the added point.
Declaration
Swift
public func newPoint(with latitude: Double, longitude: Double) -> GPXPoint -
Appends a point to the point segment
Declaration
Swift
public func add(point: GPXPoint?) -
Appends an array of points to the point segment
Declaration
Swift
public func add(points: [GPXPoint]) -
Remove a single point in the point segment
Declaration
Swift
public func remove(point: GPXPoint)
View on GitHub
GPXPointSegment Class Reference