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

get directions based upon user heading (N, S, E, W) #113

Open
calebswank11 opened this issue Apr 26, 2017 · 3 comments
Open

get directions based upon user heading (N, S, E, W) #113

calebswank11 opened this issue Apr 26, 2017 · 3 comments

Comments

@calebswank11
Copy link

Hey all, I have read through all of your documentation and may have missed it, but cannot seem to find a way to get directions based upon device heading. Say I've just turned East onto a road and require Eastbound directions but the nearest default route starts heading West. Is there a option I can pass in order to force, for lack of a better term, East bound directions? Or at a minimum, is there a way to signal a U-turn based upon that information? Thanks and you guys are doing a wonderful job!

@danpat
Copy link

danpat commented Apr 26, 2017

@calebswank11 Hmm, looks like this library is getting a bit rusty.

The Mapbox Directions API v5 supports a bearing parameter, but mapbox-directions.js has not yet been updated to support the V5 API.

See the direct HTTP REST docs for V5 here: https://www.mapbox.com/api-documentation/#retrieve-directions

@calebswank11
Copy link
Author

oh awesome, thanks @danpat! currently we don't have the ability to do anything other than Javascript. Do you guys happen to have an idea of when that will be updated so I can relay that onto my team?

Thanks again and I appreciate the response!

@danpat
Copy link

danpat commented May 10, 2017

@calebswank11 I'll flag our team manager, but at the moment, there is nobody scheduled to work on this library. So many things to do, so little time....

As this is an open-source library though, feel free to submit a pull request - we'd gladly accept one.

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