[OSRM-talk] Modifying the graph with ad-hoc time penalties at intersections
Daniel Patterson
daniel at mapbox.com
Wed Oct 21 19:56:15 UTC 2015
Thanks Patrick, yes, that was what I meant to point at :-)
> On Oct 21, 2015, at 12:44 PM, Patrick Niklaus <patrick.niklaus at student.kit.edu> wrote:
>
> Hey Guillaume,
>
> I think Daniel wanted to post a link to this line:
>
> https://github.com/Project-OSRM/osrm-backend/blob/develop/extractor/edge_based_graph_factory.cpp#L417
>
> All you need to do is to adapt the code to not only add penalties for
> traffic signals but also your node.
> Actually this code should be made more general as outlined in
> https://github.com/Project-OSRM/osrm-backend/issues/1490
>
> Best,
> Patrick
>
>
> On Wed, Oct 21, 2015 at 9:02 PM, Guillaume Barreau <g.barreau at gmail.com> wrote:
>> Hi Daniel,
>>
>> Thanks a lot for this very fast reply. The url you sent appears to be
>> broken. Could you please double-check it for me?
>>
>> Thanks again,
>>
>> Guillaume
>>
>> On 21 October 2015 at 14:56, Daniel Patterson <daniel at mapbox.com> wrote:
>>>
>>> Hi Guillaume,
>>>
>>> There is a function called for every node:
>>>
>>>
>>> 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
>>>
>>>
>>>
>>> _______________________________________________
>>> OSRM-talk mailing list
>>> OSRM-talk at openstreetmap.org
>>> https://lists.openstreetmap.org/listinfo/osrm-talk
>>>
>>
>>
>> _______________________________________________
>> OSRM-talk mailing list
>> OSRM-talk at openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/osrm-talk
>>
>
> _______________________________________________
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
More information about the OSRM-talk
mailing list