[openstreetmap/openstreetmap-website] OSM is not displaying the latest OSRM-based car navigation instructions (#1768)

Richard Fairhurst notifications at github.com
Sun Feb 25 20:02:04 UTC 2018


@omgitsgela Maybe easiest just to rename this ticket?

(From IRC)

Test case is https://www.openstreetmap.org/directions?engine=osrm_car&route=42.69290%2C-71.14200%3B42.69610%2C-71.13930#map=17/42.69493/-71.14064 which returns https://router.project-osrm.org/route/v1/driving/-71.142,42.6929;-71.1393,42.6961?overview=false&geometries=polyline&steps=true . In the response, `steps[1]` contains a new attribute of `"exits": "43"` which could be written out.

OSRM's navigational guidance has been moving on rapidly and 100% feature parity would probably be difficult, but one approach might be to have a hash of extra attributes for each parsed route step (e.g. `{ "exit": 43 }`) which could then be written out below the main instruction, so there's no need to rephrase every possible instruction each time OSRM changes its output. I do something similar for cycle.travel's instructions and it works quite well.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1768#issuecomment-368339670
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180225/7492c8ba/attachment-0001.html>


More information about the rails-dev mailing list