Hi, I'm trying to build a network for basic routing, and I'm having trouble defining one-way streets.
My streets dataset has a text field 'DIRECTION_' which stores "F" if the street only allows travel in the direction of digitzation. (It also stores "B" if travel is both ways)
After creating the network I go Properties -> Travel Attributes -> Restrictions -> New, set Usage Type = Prohibited. For the '(Against)' edge, I set Type = Field Script, and try the following:
**VBScript**
Result = restricted
Code Block:
restricted = False
If [DIRECTION_] = "F" Then
restricted = True
End If
I then build the network and try creating a route, but it always allow travel the wrong way down a one-way street.
Can anyone identify what I'm doing wrong? Or let me know if there's a trick to getting it to kick in?
Thanks
Thank you @ToyotaT18! This was extremely helpful. This is the case in ArcMap as well.