Skip to content

Commit

Permalink
Merge pull request #74 from vincentneo/fix/73
Browse files Browse the repository at this point in the history
Fix route point parsing
  • Loading branch information
vincentneo committed Apr 14, 2020
2 parents d9baed4 + 4cad35b commit f0810db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/GPXRoute.swift
Expand Up @@ -69,7 +69,7 @@ public final class GPXRoute: GPXElement, Codable {
for child in raw.children {
switch child.name {
case "link": self.link = GPXLink()
case "rtept": self.routepoints = [GPXRoutePoint]()
case "rtept": self.routepoints.append(GPXRoutePoint(raw: child))
case "name": self.name = child.text
case "cmt": self.comment = child.text
case "desc": self.desc = child.text
Expand Down

0 comments on commit f0810db

Please sign in to comment.