-
Notifications
You must be signed in to change notification settings - Fork 907
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
Use new OSRM API #1261
Use new OSRM API #1261
Conversation
This adds support for the new API in OSRM 5.x. Since this also introduced new instruction types new icon sprites are included.
Rebased this against master and adapted other routing plugins to also use the new icons. @tomhughes would be much obliged if you could review this so we can get this up to production, since we want to shut down the OSRM 4.9 server soon. 🙇 |
Well it would be a lot easier if you hadn't gratuitously changed all the icons instead of just adding the new ones... I'm a little concerned to that the new ones appear to be somewhat less bold, using thinner lines and things that will effect the visual appearance. I don't have much time this weekend and I'm away all next week but I'll see what I can do. |
Presumably I need to change the endpoint we are hitting for this to work? Currently I just get an error for any route I try... |
So some specific issues with the new icons:
In general terms as I said I'm not a great fan of the thinner lines, shorter arrows and generally more anguiar forms compared to the old icons. Some of the new ones are also very complicated though I understand it's hard to visualise such things in such a small space. Icons 20 and 21 in particular are hard to understand, though I'm not really sure where they would be used anyway - there are very few places where roads "merge" other than on ramps and those have other icons anyway (well actually they don't, they use slight-right and slight-left!). |
Oh, and there are jshint warnings being reported by travis. |
Hmm you have got mapzen using 20 for on ramps, but OSRM is using 2 and 6 which just seems wrong - that isn't even slight left and right, it's full 90 degree left and right. |
I'm not sure how to configure this. I modified
Good catch.
Agreed, fixed.
I don't see that. Github let's you comment on the exact lines in the changes of a PR, maybe that helps. You will note that the new icons come with a vector source unlike the old ones. I'm sure some more experienced designers can improve them. |
You should update the URL in |
Not sure if this is a bug in OSRM or in the javascript, but http://dev.osm.compton.nu/directions?engine=osrm_car&route=50.9580%2C-2.7590%3B50.9465%2C-2.7696#map=15/50.9523/-2.7660 is telling me to a right turn when it's clear a left at the bottom of the slip road! |
Good catch, the maneuver simplification had a small bug. |
This addresses issue #1161
Currently this is not working yet and mostly the result of an long-ish train ride.