Configure route barriers

Available with the ArcGIS Indoors Maps extension.

Barriers are features that reflect temporary changes to the network (for example, due to building renovations or repair work). Indoor Viewer honors barriers that are present when routing between locations if they are included in your web map.

The default barrier type is a restriction barrier, which means directions avoid going through the barrier and route around it. You can also configure cost barriers to allow routing through barriers, with an added delay that affects the travel time.

Learn more about barriers

Barriers can be point, line, or polygon features. Consider the following when determining which type of barrier to create:

  • You can configure point barriers as floor aware and apply them to a specific level of a facility when a barrier exists on a single level. For example, if the west wing of a building's third floor is under construction, you can place floor-aware point barriers at the entrances to the west wing on only the third floor.
  • Line and polygon barriers cannot be configured as floor aware and are applied to all levels of a facility. Barriers that are not floor aware can be used when the same area is affected on all levels in a facility, such as elevators or stairwells that are closed for maintenance, or for outdoor barriers, such as closed parking lots or construction zones.
  • You can configure all barrier layers as time aware.

You can include barrier features as a feature service–based layer from your ArcGIS organization. Changes made to feature service-based barrier layers are instantly available in the Viewer app.

You can add and configure barriers to your Viewer map from stand-alone feature classes or from network analysis layers.

Create barriers from a stand-alone feature class

To create restriction barriers from a stand-alone feature class, complete the following steps:

  1. Open the Viewer map in ArcGIS Pro.
  2. Right-click the Indoors workspace in the Catalog pane and click New > Feature Class.

    Alternatively, you can create the features in an indoor dataset.

  3. Create a point, line, or polygon feature class for the barrier features based on your organization’s needs.

    You can create one of each.

    Note:

    Only the OBJECTID and SHAPE fields are required. You can add more fields to store details based on your organization's needs.

  4. Add the feature class to your map and change symbology as needed.
  5. Name the layer one of the following: Point Barriers, Line Barriers, or Polygon Barriers.
    Note:

    You can only include one layer of each type in your Viewer map. For example, there cannot be two Point Barriers layers in the map.

  6. Create point, line, or polygon features or copy existing features.
    Tip:

    You can temporarily turn on the visibility of the Pathways layer to aid in visualization while creating barriers. Turn on snapping to control the accuracy of the pointer when creating barrier features.

  7. Optionally, configure the point barriers as floor aware.
    Note:

    Only point barriers can be configured as floor aware.

  8. Optionally, configure the barriers as time aware.
  9. Save the map.
  10. Share the web map for use in the Viewer app.

The route between two locations will now avoid these barrier locations and go around them when providing directions in the Viewer app.

Create barriers from network analysis layers

To create restriction or cost barriers using network analysis layers, complete the following steps:

  1. Open the Viewer map in ArcGIS Pro.
  2. Create a route analysis layer by completing the following:
    Note:

    If you already created a route analysis layer in the same Indoors workspace, you do not need to create a new one.

    1. On the Analysis  tab, in the Workflows  group, click Network Analysis > Route.

      The Route group layer is added to the Contents  pane. It includes several sublayers that hold the inputs and outputs of the analysis.

    2. Right-click the Route layer, click Properties, and click Source.

      Note the analysis data source location that is displayed. This is the file location of the Route layer.

    3. Remove the Route group layer from the Contents pane.
  3. Browse to the Route layer in the Catalog pane and add only the point, line, and polygon barrier layers to the map.
    Note:

    You may need to refresh the Catalog pane to view the analysis layers.

  4. On the Edit tab, click Create.

    The Create Features pane appears.

  5. In the Create Features pane, click the layer where you want to add barriers and create point, line, or polygon features.
  6. On the Edit tab, in the Selection group, click Attributes.

    The Attributes pane appears.

  7. Choose the type of barrier to create from the BarrierType drop-down menu:
    • Restriction—Directions avoid going through the barrier and route around it. This is the default.
    • Added Cost—A delay is added to the route for a point barrier.
    • Scaled Cost—A delay is added to the route for a line or polygon barrier.
  8. For cost barriers, set the following attributes as needed to increase travel time when passing through the barrier:
    • Added Cost—Set a value for the Attr_WalkTime attribute.
    • Scaled Cost—Set values for the Attr_WalkTime and Attr_Length attributes.
  9. Optionally, configure the point barriers as floor aware.
    Note:

    Only point barriers can be configured as floor aware.

  10. Optionally, configure the barriers as time aware.
  11. Save the map.
  12. Share the web map for use in the Viewer app.

The travel time will now be adjusted when routing through these barriers in the Viewer app.

Configure floor-aware point barriers

If you configured the map as floor aware, you can configure point barriers as floor aware.

  1. Right-click the Point Barriers layer and click Design > Fields.
  2. Add a new field named LEVEL_ID of type Text.
  3. Click Save and close the Fields pane.
  4. Double-click the point barrier layer in the Contents pane to open the Layer Properties dialog box.
  5. Click the Floors tab and set the LEVEL_ID field for the Floor Field parameter.
  6. Right-click the Point Barriers layer and click Design > Fields.
  7. Add a value to the LEVEL_ID field for each barrier feature that matches the LEVEL_ID value of the level on which the barrier is located.

The Point Barriers layer is now configured as floor aware, and you can use the floor filter to visualize barrier data. Floor-aware point barriers are honored in the Viewer app for directions that route through the level on which they are located.

Note:

If you have multiple pathways that run parallel in a hallway, you need to place multiple point barriers.

Configure time-aware barriers

You can configure all barrier layers as time aware. The Viewer app honors the barrier features if the directions are generated within the specified date and time. If directions are generated outside of the specified date and time range, the Viewer app ignores the barriers even if they are present in the map.

To make the barrier layers time aware, complete the following steps:

  1. Right-click the barrier layer and click Design > Fields.
  2. Add a new field named START_TIME of type Date if the feature class does not have a field for start time.
  3. Add a new field named END_TIME of type Date if the feature class does not have a field for end time.
  4. Click Save and close the Fields pane.
  5. Right-click the barrier layer, click Properties, and click the Time tab.
  6. Click the Layer Time drop-down arrow and choose Each feature has start and end time fields.
  7. Set the Start Time Field and End Time Field parameter values.
    Note:

    If no end time field is defined or if the end time field is defined but no value is specified, the barrier is considered valid indefinitely beginning from the start time.

  8. Click OK.
  9. Right-click the barrier layer and click Attribute Table.
  10. Add values to the START_TIME and END_TIME fields as needed.

    Time values must be in coordinated universal time.

The barrier layer is now time aware and barriers will be used for routing in the Viewer app based on the configured start and end times.

Related topics