Skip to content

Commit

Permalink
fixed routepoint init
Browse files Browse the repository at this point in the history
related to #8
  • Loading branch information
vincentneo committed Jan 23, 2019
1 parent 8d7e32b commit 37bcc4d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Classes/GPXRoutePoint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ open class GPXRoutePoint: GPXWaypoint {

// MARK:- Instance

func routePoint(with latitude: CGFloat, longitude: CGFloat) -> GPXRoutePoint {
let routePoint = GPXRoutePoint()
routePoint.latitude = latitude
routePoint.longitude = longitude

return routePoint
public override init(latitude: CGFloat, longitude: CGFloat) {
super.init()
self.latitude = latitude
self.longitude = longitude
}

// MARK:- Tag
Expand Down

0 comments on commit 37bcc4d

Please sign in to comment.