Skip to content

Commit

Permalink
parse route points
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentneo committed Apr 14, 2020
1 parent d9baed4 commit 4cad35b
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 4cad35b

Please sign in to comment.