[OSRM-talk] Modifying the graph with ad-hoc time penalties at intersections
daniel at mapbox.com
Wed Oct 21 18:56:07 UTC 2015
There is a function called for every node:
however, it doesn't feed back any specific per-node penalties. It's used to flag barriers and traffic lights right now.
It could be adapted to do per-node penalty values, you would probably need to modify the existing light penalty functionality and add a lookup for your values, rather than using the global light penalty we have currently.
> On Oct 21, 2015, at 11:46 AM, Guillaume Barreau <g.barreau at gmail.com> wrote:
> I would like to OSRM for a research project but I have this unusual requirement. I would want to be able to add time penalties at some sets of vertices (defined by their id) that would be used to compute the fastest routes in a table calculation. My input would therefore be a list of (node_id,delays) to be added to the underlying graph. Is this feasible? I am prepared to modify the code if needs be, I don't expect to be able to do this with a config file. If it is feasible, could someone point me in the right direction?
> Thank you very much for your help,
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OSRM-talk