mapbox / mapbox/mapbox-navigation-ios

Speed limit indicator not shown with Valhalla-based routing profiles

Open
#2,689 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

blocked jira-sync-complete question UI
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.

![Simulator Screen Shot - iPhone 11 Pro Max - 2020-10-12 at 23 00 40](https://user-images.githubusercontent.com/24219374/95774867-e50c6580-0cde-11eb-9b7d-7f44a3a98de1.png)

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.