Skip to main content
Question

to find the shortest route

  • June 12, 2025
  • 2 replies
  • 59 views

gbcfgeo2025
Contributor
Forum|alt.badge.img+3

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+53
  • 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.