[GraphHopper] Current time calculation in Bidirectional A* and passing it to the custom weighting class
Peter
graphhopper at gmx.de
Wed Jul 29 06:00:57 UTC 2015
Hi Mani,
you can pass this time parameter in the WeightingMap (filled from
ghRequest.getHints, which is filled from URL parameters) which is
available in every Weighting:
https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/util/FastestWeighting.java#L45
Kind Regards,
Peter
On 28.07.2015 09:32, Manikanta Kondeti wrote:
> Hello,
>
> I am working on a project where there is a need for handling time
> based restrictions. So I've written a temporal weighting class which
> filters based on the curr time. So my question is can we calculate
> this curr time param and pass it to the temporal weighting class? If
> so will it be accurate for bidirectional A*? Please help where to start.
>
> Thanks,
> Mani
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20150729/a76b7397/attachment.html>
More information about the GraphHopper
mailing list