<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Mani,<br>
<br>
I assumed in my first answer you meant just the starting time. But
what you need is to make the full algorithm time dependent and for
that you'll need to modify the algorithm itself not just the input
parameters like I was suggesting. For example you need to
introduce a state object instead of just the traversalId and the
state object also contains the time to make it possible that some
edges are available only up to a certain time etc. <br>
<br>
There are several possibilities, but the short story is that this
is not easy and really depends on the use case you have (public
transport? traffic information?) if there are simple alternatives.<br>
<br>
Kind Regards,<br>
Peter<br>
<br>
On 29.07.2015 09:40, Manikanta Kondeti wrote:<br>
</div>
<blockquote
cite="mid:CAMxCCEbf+EYF=ZrXxqub=Bxgf12VgoaykBvAv1JOA5K3o3==ig@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Peter,
<div><br>
</div>
<div> 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. </div>
<div><br>
</div>
<div>Thanks, </div>
<div>Mani </div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
GraphHopper mailing list
<a class="moz-txt-link-abbreviated" href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/graphhopper">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
</blockquote>
<br>
</body>
</html>