GPXRoute

public final class GPXRoute : GPXElement, Codable, GPXRouteType

Value type that represents a route, or rteType in GPX v1.1 schema.

The route can represent the planned route of a specific trip.

  • Name of the route.

    Declaration

    Swift

    public var name: String?
  • Additional comment of the route.

    Declaration

    Swift

    public var comment: String?
  • Description of the route.

    Declaration

    Swift

    public var desc: String?
  • Source of the route.

    Declaration

    Swift

    public var source: String?
  • A value type for link properties (see GPXLink)

    Intended for additional information about current route through a web link.

    Declaration

    Swift

    @available(*, deprecated, renamed: "links.first", message: "CoreGPX now support multiple links.")
    public var link: GPXLink? { get }
  • A value type for link properties (see GPXLink)

    Intended for additional information about current route through web links.

    Declaration

    Swift

    public var links: [GPXLink]
  • Type of route.

    Declaration

    Swift

    public var type: String?
  • Extensions

    Declaration

    Swift

    public var extensions: GPXExtensions?
  • Route points in the route.

    All route points joined represents a route.

    Declaration

    Swift

    @available(*, deprecated, renamed: "points")
    public var routepoints: [GPXRoutePoint] { get }
  • Route points in the route.

    All route points joined represents a route.

    Declaration

    Swift

    public var points: [GPXRoutePoint]
  • Number of route (possibly a tag for the route)

    Declaration

    Swift

    public var number: Int?
  • Default initializer.

    Declaration

    Swift

    public required init()