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

RouteStep "names" property is nil for walking directions #783

Open
sw5813 opened this issue Jan 2, 2023 · 2 comments
Open

RouteStep "names" property is nil for walking directions #783

sw5813 opened this issue Jan 2, 2023 · 2 comments

Comments

@sw5813
Copy link

sw5813 commented Jan 2, 2023

For other profiles such as cycling or driving, the "names" property of a RouteStep object will be the road or path leading to the next maneuver. However, when using the walking profile, the "names" property is always nil. This seems like a bug?

Along the same lines, the "instructions" property for RouteStep also doesn't include the next road/path when using the walking profile, while it does for other profiles.

Driving Instructions:
image

Walking instructions:
image

@jill-cardamon
Copy link
Contributor

Hi @sw5813! Thanks for reporting. What version of mapbox-directions-swift is resulting in this behavior? Are you using Directions.calculate(_:completionHandler:) to retrieve a RouteResponse?

@sw5813
Copy link
Author

sw5813 commented Jan 3, 2023

Hi @jill-cardamon, I'm using v2.8.0 of MapboxDirections in my swift app and I'm calling Directions.shared.calculate(routeOptions!) { session, result in ... } to retrieve a RouteResponse. I also tried making the same adjustment in the Navigation-Examples demo app by modifying NavigationRouteOptions in the basic example: let options = NavigationRouteOptions(coordinates: [origin, destination], profileIdentifier: .walking) (adding the walking profile identifier) and saw the same result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants