Set Traffic Rules

Setting traffic rules involves configuring whether an arc is one-way or forbidden to pass, etc. Typically, we store traffic rules information as field attribute values in a text-type field, where different values represent different rules, such as forward value, backward value, or forbidden to pass. During usage, specify the attribute values corresponding to each rule in the traffic rules settings dialog. Unspecified attribute values and null values default to bidirectional roads.

Steps

  1. Open the network dataset containing traffic rules information.
  2. In the network analysis environment settings window, configure the network analysis resistance field, node/edge ID field, etc. For details about this window, see the network analysis environment settings window page.
  3. In the environment settings window, click the Set Traffic Rules button to open the "Traffic Rules Settings" dialog.
  4. Check the Enable Rules checkbox to apply traffic rules to the current network dataset.
  5. Click the drop-down arrow next to Traffic Rules Field and select a field from the list as the traffic rules field.
  6. Set the forward value: Click the drop-down arrow next to Forward Value, select "Set" from the list to open the settings dialog. Add attribute values corresponding to the forward value here. Multiple values can be added. To modify, select "Clear" and reconfigure.
  7. Continue setting the backward value and prohibited value.
  8. Click OK to save settings and close the dialog.
Caution:
  1. When setting traffic rules (e.g., forward value, backward value, prohibited value), multiple values can represent the same rule. For example, if both "One-way Forward" and "Restricted Forward" are set as forward values, arcs with these field values will all be treated as forward value lines.
  2. A field value can only represent one traffic rule. Once a field value is assigned to a rule, it will be automatically filtered out when setting other rules. For example, if "Bus Lane" is set as a forward value, it cannot be used for backward value or prohibited value.