[GraphHopper] Current time calculation in Bidirectional A* and passing it to the custom weighting class

Manikanta Kondeti mani.iiit123 at gmail.com
Wed Jul 29 07:40:02 UTC 2015


Hi Peter,

   Thanks for the reply. I want to calculate the time for every node added
to the path. Lets say we have 5 nodes A B C D E.  I've started from A, so
my currTime variable is defined and set in Astar.java. So I am checking for
A - B, while calling calcWeight function in a weighting , I've to send my
currTime updated. Like currTime = currTime + ( A-B.distance() /
encoder.getSpeed() );  So now in weighting calcWeight method I can check
for restriction. The problem is clear for Astar in one way direction. How
about bi-directional?  What exactly the above parameter does
(heading_penalty)? We need to calculate time in routing function (
Astar.java, AstarBi.java, Dijkstra.java etc.) , right?   Let me know if I
am not clear.

Thanks,
Mani
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20150729/6764394e/attachment.html>


More information about the GraphHopper mailing list