[pgrouting-dev] Driving Distance

Stephen Mather stephen at smathermather.com
Fri Jun 21 13:07:45 PDT 2013


Hi All,

Having a great time with 2.0-develop.  Question on pgr_drivingDistance.  
I added geometry to the test dataset and wrote the following query to 
return all points within driving distance:

WITH DD AS (
SELECT seq, id1 AS node, cost
         FROM pgr_drivingDistance(
                 'SELECT id, source, target, cost FROM edge_table',
                 7, 1.5, false, false
         )
         )

SELECT ST_AsText(the_geom)
     FROM vertex_table w, DD d
     WHERE w.id <http://w.id> = d.node
     ;

A) Am I correct in my usage of this?
B) Am I correct in assuming there is no way (at this time) to return 
subsets of lines, similar to TSP?

Best,
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pgrouting-dev/attachments/20130621/6dec0408/attachment.html>


More information about the pgrouting-dev mailing list