Skip to main content
Open

ShortestPathFinder - Handle a network with both two-way and one-way edges

Related products:Transformers
  • Sep 26, 2018 12:00 AM UTC
  • 1 reply
  • 51 views

graemebrown
Contributor
Forum|alt.badge.img+3

ShortestPathFinder can currently handle either one-way or two-way streets, but it doesn't handle a mixed network well. Setting Cost Type to "By Two Attributes" and setting the reverse cost to a large number for one-way streets works as a workaround, but it's not very elegant and not foolproof. It would be great if we could indicate that a street is one-way by setting the reverse cost to negative or null.

1 reply

ebygomm
Evangelist
Forum|alt.badge.img+54
  • Evangelist
  • Nov 14, 2018 9:00 AM UTC

Agree, currently even a large reverse cost won't prevent travel the wrong way down one way streets if it is the only route available.