Skip to main content
Question

to find the shortest route


gbcfgeo2025
Contributor
Forum|alt.badge.img+2

Hi community, does anyone know how to find these points using NeighborFinder/VertexCreator and then create a line with LineBuilder? My goal is to find the shortest route between the "common" points of these two road networks (existing vs planned).

2 replies

tomfriedl
Contributor
Forum|alt.badge.img+13
  • Contributor
  • June 12, 2025

Maybe the transformer ShortestPathFinder?


j.botterill
Influencer
Forum|alt.badge.img+40
  • Influencer
  • June 12, 2025

here is an article explaining https://Shortest-Route-Calculations-with-the-ShortestPathFinder 

You’ll need to prepare the inputs:

and consider these usage notes 

  • If ShortestPathFinder produces unexpected results, consider using AnchoredSnapper instead. Input the From-To Line through the Candidate input port and use the same value for Snapping Tolerance. Specify Snapping Type = End Point Snapping and Add Additional Vertex = NEVER.

  • Only linear features with non-negative cost attribute values are allowed if the Cost Type is set to By One Attribute or By Two Attributes. If a feature does not have the attribute specified in the Forward Cost Attribute or the Reverse Cost Attribute, a zero cost is used for the line. Any features with a negative cost will be output through the <Rejected> port.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings