-
Notifications
You must be signed in to change notification settings - Fork 3.8k
-
/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?
Beta Was this translation helpful? Give feedback.