[pgrouting-users] Get the edges in correct order

Stephen Woodbridge woodbri at swoodbridge.com
Thu Sep 1 00:20:45 EDT 2011

On 8/31/2011 11:28 PM, ancaag04 at alumnos.unex.es wrote:
> Hello, i'm using A-star like this:
> SELECT gid, AsText(the_geom) AS the_geom
> FROM astar_sp_delta('ways', 2124, 2168, 0.1);
> The path is correct but sometimes I don't get the edges in the correct order.
> Is this normal?

I think the edges are always in the correct order, but some times the 
edge is reversed from the direction that you traverse it on the route. 
This has been discussed in the past and I have posted an algorithm to 
correct that, but I do not have a link to it handy.


More information about the Pgrouting-users mailing list