[OSRM-talk] Supporting backward settings: speed, mode, impedance..

Emil Tin ZF0F at tmf.kk.dk
Mon Jan 21 09:53:13 GMT 2013


Support for setting forward/backward speed is currently being worked on in the https://github.com/DennisOSRM/Project-OSRM/tree/feature/opposite_direction branch. Very nice!

In the Lua script, you can set way.backward_speed, in cases where it's different from way.speed. This is very helpful in supporting pushing of bikes against oneway flow. In this case, the backward speed would be set to pedestrian speed.

A few suggestions:

1.
You need the ability to also set the mode differently for the backward direction. In the example with pushing bikes, mode_forward=bike, mode_backward=foot.

2.
Once separate speed and impedance is supported, the impedance can also be different in the forward/backward direction. For example, a street often have a bike track only in one direction.

3.
It seems like way.direction can be eliminated, now that you can directly set the speed for each direction. Having both could lead to confussion. It might be helpful to explicitly name the settings way.speed_forward, and way.speed_backward.


-Emil

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osrm-talk/attachments/20130121/ac6c04e5/attachment.html>


More information about the OSRM-talk mailing list