No one knows why I get an wrong order? For displaying the route it is not important to have ordered edges. But for other issues like implementing a route description ("in 200meters turn left") i need a correct order..<br>
<br>Thank you for your help in advance<br><br>regards<br>mehmet sirin<br><br><div class="gmail_quote">2010/3/17 Mehmet Sirin <span dir="ltr"><<a href="mailto:m.sirin07@googlemail.com">m.sirin07@googlemail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi, <br>I wonder why pgRouting is giving back a wrong order of edges in the calculated shortest path? <br>
e.g. shortest path order should be: 1,2,3,4,5 but a different one is returned, e.g.: 1,3,5,2,4<br><br>We use this code: <br>
<br>SELECT * FROM shortest_path('SELECT gid AS id, source::int4, target::int4,<br> to_cost_shortest::double precision AS cost,reverse_cost_shortest::double<br> precision AS reverse_cost FROM ways', $startVertex, $endVertex, true, true)<br>
<br>Anyone got an idea? <br><br>
</blockquote></div><br>