Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indicate current road name during free-driving #2456

Closed
1ec5 opened this issue Jul 14, 2020 · 2 comments · Fixed by #2410
Closed

Indicate current road name during free-driving #2456

1ec5 opened this issue Jul 14, 2020 · 2 comments · Fixed by #2410
Labels
feature New feature request. topic: location
Milestone

Comments

@1ec5
Copy link
Contributor

1ec5 commented Jul 14, 2020

The navigation SDK should indicate the name of the road the user is currently on even during “free-driving” outside of turn-by-turn navigation, so that the developer can stick this information in WayNameLabel/WayNameView.

MapboxNavigationNative provides this information via the MBNavigationStatus.roadName property. One possibility is to expose this information as part of the location manager being added in #2410.

/ref #2259 #590
/cc @mapbox/navigation-ios @d-prukop

@avi-c
Copy link
Contributor

avi-c commented Aug 7, 2020

In my brief look at the current road name provided in the status updates it looked like it isn't set by NN for simulation. Is this expected?

@1ec5
Copy link
Contributor Author

1ec5 commented Aug 18, 2020

#2410 adds a roadNameKey key to the user info dictionary of passive location update notifications.

In my brief look at the current road name provided in the status updates it looked like it isn't set by NN for simulation. Is this expected?

Unfortunately, the navigator only populates this field during free-driving, not during turn-by-turn navigation, even if route simulation is enabled. Once a future version of MapboxNavigationNative exposes the current road name during turn-by-turn navigation, we’ll find a way to expose it as part of a route controller location update and potentially route progress as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request. topic: location
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants