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:
Result = restricted
restricted = False
If [DIRECTION_] = "F" Then
restricted = True
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?