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

Emil Tin ZF0F at tmf.kk.dk
Wed May 8 11:02:20 UTC 2013


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:karme at karme.de]
Sendt: 8. maj 2013 12:07
Til: osrm-talk at openstreetmap.org
Emne: Re: [OSRM-talk] adding way id and direction to output

Emil Tin <emil at tin.dk> 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
OSRM-talk at openstreetmap.org
http://lists.openstreetmap.org/listinfo/osrm-talk

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


More information about the OSRM-talk mailing list