HOW TO
Within a Network Dataset created using Esri UK Data Loader tools or Esri tools, there may be a need to add additional Travel Restrictions such as a restriction to avoid "Restricted Access Roads" when creating a Route. This can be implemented by using the steps below.
To create a new Restriction that tells the routing to avoid the restricted access roads, follow the steps below:
restricted = False Select Case [routeHierarchy] Case "Restricted Local Access Road": restricted = True End Select
Once configured, the settings in the dialog appear as shown below:
The routing will now try to avoid the restricted access roads as shown in the image below.
In some cases where the alternative route is deemed too long compared to the overall route distance, the software may still try and route down that road. If this is still an issue, then the restricted roads can be removed from the routing altogether by changing the restriction Usage Type to Prohibited, as shown in the next image.
Note: This does mean that if there is a start point on a restricted road, either the system may not find a viable route, or will start from the nearest non-restricted road, potentially making the distance calculation incorrect.
Get help from ArcGIS experts
Download the Esri Support App