Skip to content

Commit

Permalink
Fix bug where leg source and destination are mismatched when route co…
Browse files Browse the repository at this point in the history
…ntains trackpoint or silent waypoint
  • Loading branch information
jill-cardamon authored Jul 13, 2021
1 parent 856c743 commit 8cc37a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/MapboxDirections/DirectionsResult.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ open class DirectionsResult: Codable {

//populate legs with origin and destination
if let options = options as? DirectionsOptions {
let waypoints = options.waypoints
legs.populate(waypoints: waypoints)
let legSeparators = options.legSeparators
legs.populate(waypoints: legSeparators)
} else {
throw DirectionsCodingError.missingOptions
}
Expand Down

0 comments on commit 8cc37a0

Please sign in to comment.