May 2017
Beginner to intermediate
328 pages
7h 17m
English
All pairs shortest path algorithms are good for calculating the total costs of the shortest path for each node in the graph. There are two of those available in pgRouting:
Let's give it a shot:
select * from pgr_floydWarshall('select gid as id, the_geom, source::int4, target::int4, cost::float from pgr.ways where ST_Intersects(the_geom, ST_MakeEnvelope(16.3618,48.2035,16.3763,48.2112,4326))', false);
This query picks roughly a thousand of the edges of Vienna city center from our OSM ways table and outputs something like this (the ...
Read now
Unlock full access