Driving Distance  Category¶
pgr_drivingDistance  Driving Distance based on Dijkstra’s algorithm
pgr_primDD  Driving Distance based on Prim’s algorithm
pgr_kruskalDD  Driving Distance based on Kruskal’s algorithm
Post pocessing
pgr_alphaShape  Alpha shape computation
Proposed
Warning
Proposed functions for next mayor release.
They are not officially in the current release.
They will likely officially be part of the next mayor release:
The functions make use of ANYINTEGER and ANYNUMERICAL
Name might not change. (But still can)
Signature might not change. (But still can)
Functionality might not change. (But still can)
pgTap tests have being done. But might need more.
Documentation might need refinement.
pgr_withPointsDD  Proposed  Driving Distance based on pgr_withPoints
Calculate nodes that are within a distance.
Extracts all the nodes that have costs less than or equal to the value distance.
The edges extracted will conform to the corresponding spanning tree. Edge
Edge \((u, v)\) will not be included when:
The distance from the root to \(u\) > limit distance.
The distance from the root to \(v\) > limit distance.
No new nodes are created on the graph, so when is within the limit and is not within the limit, the edge is not included.
Parameters¶
Parameter 
Type 
Description 


Edges SQL as described below. 

Root vid 

Identifier of the root vertex of the tree. 
Root vids 

Array of identifiers of the root vertices.

distance 

Upper limit for the inclusion of a node in the result.

Where:
 ANYINTEGER
SMALLINT
,INTEGER
,BIGINT
 ANYNUMERIC
SMALLINT
,INTEGER
,BIGINT
,REAL
,FLOAT
,NUMERIC
Inner queries¶
Edges SQL¶
Column 
Type 
Default 
Description 


ANYINTEGER 
Identifier of the edge. 


ANYINTEGER 
Identifier of the first end point vertex of the edge. 


ANYINTEGER 
Identifier of the second end point vertex of the edge. 


ANYNUMERICAL 
Weight of the edge ( 


ANYNUMERICAL 
1 
Weight of the edge (

Where:
 ANYINTEGER
SMALLINT
,INTEGER
,BIGINT
 ANYNUMERICAL
SMALLINT
,INTEGER
,BIGINT
,REAL
,FLOAT
See Also¶
Indices and tables