Understanding complex pgrouting query(pgr_dijkstra)
Posted: Sun Sep 06, 2015 2:51 pm
I was just going through the documentation herehttp://workshop.pgrouting.org/chapters/ ... hted-costs .
What is happaning at this part of the query :
Its a bit hard to understand , can somebody explain please ?
Code: Select all
SELECT seq, id1 AS node, id2 AS edge, cost FROM pgr_dijkstra('
SELECT gid AS id,
source::integer,
target::integer,
length * c.cost AS cost
FROM ways, classes c
WHERE class_id = c.id',
30, 60, false, false);
Code: Select all
length * c.cost AS cost
FROM ways, classes c
WHERE class_id = c.id',