[OSRM-talk] adding way id and direction to output

Robert Scott lists at humanleg.org.uk
Thu Apr 25 13:55:53 UTC 2013


On Thursday 25 April 2013, Jens Thiele wrote:
> Hi,
> 
> i want to add way id and direction (forward/backward) to the routing
> output
> 
> to add the way id a simple hack is to use the id as name in the lua
> profile

Heh - I've needed the same thing and have done it similarly, only directly in the source rather than in lua (the original patches were written before all this lua fanciness was around). See my "tsbp" branch which includes all my needed hacks in this vein:

https://github.com/risicle/Project-OSRM/tree/tsbp

(it's a little behind osrm proper but not tremendously)

> adding the direction (forward/backward) on each way seems extremely hard

I am going to have to do something similar in the future so will be interested to see how this pans out. Ideally I would like a PhantomNode (which I can use to initiate a search with) that has a "direction" flag, positive or negative. Alternatively a way of discovering the "direction" a destination PhantomNode is reached from by a routing result would allow me to do some useful calculations.

But this is as far as I've researched this subject so far.


robert.




More information about the OSRM-talk mailing list