Defining one-way streets for network in ArcGIS Pro

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

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
3 Replies
New Contributor III

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 🙂

New Contributor II

Thank you @ToyotaT18! This was extremely helpful. This is the case in ArcMap as well.

0 Kudos
Regular Contributor

@ToyotaT18 thank you for your reply, this helped me! I had not seen the checkbox.



0 Kudos