[OSRM-talk] Modifying the graph with ad-hoc time penalties at intersections

Daniel Patterson daniel at mapbox.com
Wed Oct 21 18:56:07 UTC 2015


Hi Guillaume,

  There is a function called for every node:

    https://github.com/mapbox/inrix-processing/blob/master/regions.json#L198-L201 <https://github.com/mapbox/inrix-processing/blob/master/regions.json#L198-L201>

  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.

daniel

> On Oct 21, 2015, at 11:46 AM, Guillaume Barreau <g.barreau at gmail.com> wrote:
> 
> Hello,
> 
> 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,
> 
> Guillaume
> _______________________________________________
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osrm-talk/attachments/20151021/344376fe/attachment.html>


More information about the OSRM-talk mailing list