Defining one-way streets for network in ArcGIS Pro

05-13-2021 08:26 PM
Labels (1)
New Contributor

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

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?



0 Kudos
1 Reply
New Contributor

I worked out what was missing, I had to then add a 'Travel Mode' and select that Restriction rule to be included. All working now 🙂

0 Kudos