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

Emil Tin emil at tin.dk
Mon Apr 29 18:13:49 UTC 2013



I fixed these and added a few tests.


On a sidenote, I think the way.direction flag could be removed from LUA. Instead you could just set forward and backward speed.




On Apr 29, 2013, at 16:37 , Jens Thiele <karme at karme.de> wrote:

> Jens Thiele <karme at karme.de> writes:
> 
>> Emil Tin <emil at tin.dk> writes:
>> 
>>> I think what you're requesting will be covered by the mode flag, which
>>> is mostly done:
>>> https://github.com/DennisOSRM/Project-OSRM/tree/experimental/modes
>>> 
>>> The idea is that the LUA profile can set the mode for each direction
>>> of a way:
>>> https://github.com/DennisOSRM/Project-OSRM/blob/experimental/modes/profiles/testbot.lua#L83
>>> 
>>> and it wil be passed as part of the returned route.
>>> https://github.com/DennisOSRM/Project-OSRM/blob/experimental/modes/features/testbot/mode.feature#L56
>>> 
>>> 
>>> For bikes, 1 could be normal and 2 pushing a bike. For your use, you
>>> could always just use 1 for forward and 2 for backward, regardless of
>>> way type.
>> 
>> ah great! missed that one
>> thanks! will take a look at it (next week)
> 
> looks quite good so far, but there seem to be some problems:
> - if speed forward == speed backward it doesn't work
> - i guess it will be wrong if direction=opposite
>  (didn't test it, yet)
> 
> jens
> 
> _______________________________________________
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/osrm-talk




More information about the OSRM-talk mailing list