Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

What's the correct way to specify the bearing for routes? #6796

Unanswered
jjeffchoi asked this question in Q&A
Discussion options

/route/v1/driving/-78.10131888342865,41.56893770131277%3B-78.511866,41.648554?alternatives=true&steps=true&overview=full&bearings=315,24;0,359

Above API call OSRM indicates that 315 is the direction that the user is heading which is roughly North West and 24 is the allowable variance in bearing. For destination, the direction can be from anywhere.

However, the provided response from OSRM is constantly in the opposite direction of the current heading of the user. I've tried the tolerance bearing of various sizes but still only getting the directions in the opposite direction.

To eliminate the possibility that it could be due to the restrictions on the roads nearby, I've tried on multiple different roads as well as different destinations. Is above the correct way to specify the direction for the source?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
1 participant
Converted from issue

This discussion was converted from issue #6789 on March 03, 2024 17:54.

AltStyle によって変換されたページ (->オリジナル) /