Skip to content

Commit

Permalink
Rework the logic for including maximumSpeedLimits annotations to rest…
Browse files Browse the repository at this point in the history
…rict them to auto driving profiles.
  • Loading branch information
avi-c authored and 1ec5 committed Aug 7, 2019
1 parent ab350a1 commit 3012c53
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions MapboxCoreNavigation/NavigationRouteOptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,9 @@ open class NavigationMatchOptions: MatchOptions {
includesSteps = true
routeShapeResolution = .full
shapeFormat = .polyline6
if profileIdentifier == .walking {
attributeOptions = [.congestionLevel, .expectedTravelTime]
} else {
attributeOptions = [.congestionLevel, .expectedTravelTime, .maximumSpeedLimit]
attributeOptions = [.congestionLevel, .expectedTravelTime]
if profileIdentifier == .automobile || profileIdentifier == .automobileAvoidingTraffic {
attributeOptions.insert(.maximumSpeedLimit)
}
includesSpokenInstructions = true
locale = Locale.nationalizedCurrent
Expand Down

0 comments on commit 3012c53

Please sign in to comment.