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
_______________________________________________ GraphHopper mailing list [email protected] https://lists.openstreetmap.org/listinfo/graphhopper
