Defining one-way streets for network in ArcGIS Pro

1881
3
05-13-2021 08:26 PM
ToyotaT18
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:

**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

 

0 Kudos
3 Replies
ToyotaT18
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 🙂

DannySmith12
New Contributor III

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

0 Kudos
BrittanyBurson
Occasional Contributor III

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

BrittanyBurson_0-1650573258869.png

 

0 Kudos