[pgrouting-users] Incorrect order of edges
m.sirin07 at googlemail.com
Thu Apr 15 18:36:32 EDT 2010
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..
Thank you for your help in advance
2010/3/17 Mehmet Sirin <m.sirin07 at googlemail.com>
> I wonder why pgRouting is giving back a wrong order of edges in the
> calculated shortest path?
> 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
> We use this code:
> SELECT * FROM shortest_path('SELECT gid AS id, source::int4, target::int4,
> to_cost_shortest::double precision AS
> precision AS reverse_cost FROM ways', $startVertex, $endVertex, true,
> Anyone got an idea?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pgrouting-users