I asked about this a few days ago and Steve mentioned that the shooting star algorithm for one-ways may be broken on 1.05. I switched to Dijkstra and everything works fine for me now...<br><br><div class="gmail_quote">On Thu, Dec 8, 2011 at 9:29 AM, Mehmet Hilmi Elihos <span dir="ltr">&lt;<a href="mailto:elihos@gmail.com">elihos@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi to all,<br><br>I&#39;m trying to make routing with pg_routing algorithms.<br>But i&#39;m ahving problems with one way roads. Algorithm insists on using opposite directional roads even i&#39;m using the biggest reverse_cost value.<br>

<br>Here is the algorithm that i&#39;m using.<br><br>SELECT * FROM shortest_path_shooting_star(<br>        &#39;SELECT gid as id, class_id, source, target, length*c.cost as cost,<br>                x1, y1, x2, y2, rule, to_cost, reverse_cost*c.cost as reverse_cost<br>

        FROM ways w, classes c<br>        WHERE class_id=<a href="http://c.id" target="_blank">c.id</a>&#39;, 1450296, 1468993, true, true);<br><br>the algorithm always ignores the reverse_cost and insists on using opposite directional roads.<br>

<br>Could you help me to solve this problem?<br><br>You can find a snap_shot about this problem in the attachment.<br><br>Thanks for your help<br><br>
<br>_______________________________________________<br>
Pgrouting-users mailing list<br>
<a href="mailto:Pgrouting-users@lists.osgeo.org">Pgrouting-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-users</a><br>
<br></blockquote></div><br>