Skip to content

Commit

Permalink
Add elevation to trackpoint attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
AF-tl committed Apr 25, 2024
1 parent 7ba4a24 commit 244f4f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Classes/GPXWaypoint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ public class GPXWaypoint: GPXElement, GPXWaypointProtocol, Codable {
init(raw: GPXRawElement) {
self.latitude = Convert.toDouble(from: raw.attributes["lat"])
self.longitude = Convert.toDouble(from: raw.attributes["lon"])
self.elevation = Convert.toDouble(from: raw.attributes["ele"])

for child in raw.children {
switch child.name {
Expand Down

0 comments on commit 244f4f9

Please sign in to comment.