In afraid I don't really understand what you mean. But you can now (in the 
modes branch) use:

way.speed = 80          -- set speed for both directions
way.forward.speed = 50  -- set speed in forward direction
way.backward.speed = 50 -- set speed in backward direction

And same for mode.

You can also read way.speed, which will return -1 if forward/backward speed are 
not the same, otherwise it returns the speed.
Of course you can also read way.forward.speed and way.backward.speed.



-----Oprindelig meddelelse-----
Fra: Jens Thiele [mailto:[email protected]]
Sendt: 8. maj 2013 12:07
Til: [email protected]
Emne: Re: [OSRM-talk] adding way id and direction to output

Emil Tin <[email protected]> writes:

> Sendt fra min iPhone

[...]

>
> Ok. Yes i think it could be removed. Both speed and mode could be used
> instead to indicate which directions are traversible.

i see you did that - imho nice improvement

i would like it even more if there would be only one place to look for
(as user the relation between speed and mode is not clear)
a more functional approach could really help here


> It would be nice if you could use way.speed to set both directions,
> and way.forward.speed / way.backward.speed to override for each
> direction. And similar for other settings.

same here plus the added complexity isn't worth it
at the moment i have a real problem with it:
for debugging purposes i want to apply the profile functions in a pure
lua context - that is i construct ways in lua

now i don't know how to reproduce that behaviour in pure lua



_______________________________________________
OSRM-talk mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/osrm-talk

_______________________________________________
OSRM-talk mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/osrm-talk

Reply via email to