mapbox / mapbox/mapbox-navigation-ios
Speed limit indicator not shown with Valhalla-based routing profiles
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 918
- Forks
- 326
- Avg merge
- 1h 16m
- Merged PRs (30d)
- 3
Description
After starting turn by turn navigation SDK, Map doesn't shows speed limit UI on right corner.

Below is code -
Direction.shared.calculate(options) { (session, result) in) {
switch result {
case .failure(let error):
print(error.localizedDescription)
case .success(let response):
print("Response->", response)
guard let route = response.routes?.first else {
return
}
let navigationService = MapboxNavigationService(route: route, routeIndex: 0, routeOptions: routeOptions, simulating: .always)
let navigationOptions = NavigationOptions(styles: [MichelinDayStyle()], navigationService: navigationService)
let navigationViewController = NavigationViewController(for: route, routeIndex: 0, routeOptions: routeOptions, navigationOptions: navigationOptions)
navigationViewController.modalPresentationStyle = .fullScreen
navigationViewController.showsSpeedLimits = true
self.present(navigationViewController, animated: true, completion: nil)
}
}
Mapbox SDK version 6.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the shown Direction.shared.calculate setup and Mapbox SDK 6.0, then inspect how NavigationViewController handles showsSpeedLimits for the Valhalla-based route. Compare the route response and the speed-limit indicator behavior; done means the speed limit UI appears during turn-by-turn navigation for that routing profile.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100