Robert Scott <[email protected]> writes: > 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)
ok >> 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. as i failed to keep track of the swaps another hack would be to just split every way into 2 oneways and then encoding the id and direction in the name :( but probably start and end of route will need extra care as additional motiviation for the whole thing: it would allow to solve many output problems easily for example the cost vs time(s) thing btw: ideally one wouldn't need the hack and also could hijack the hierarchy to prefold output values (one could also partially precompute douglas-peucker for the higher levels geometry) as far as i understand only weight is folded in the higher levels so much to do, so little time _______________________________________________ OSRM-talk mailing list [email protected] http://lists.openstreetmap.org/listinfo/osrm-talk
