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 them, 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 choosing what 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

Complete the following to create barriers from a stand-alone feature class. Barriers created using this method are restriction barriers.

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

    Optionally, create the features in your indoor dataset.

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

    You can create up to 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 and paste 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 your point barriers as floor aware.
    Note:

    Only point barriers can be configured as floor aware.

  8. Optionally, configure your 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

Complete the following to create restriction or cost barriers using network analysis layers:

  1. Open your 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.

      Make note of 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 view to see the analysis layers.

  4. On the Edit tab, click Create.

    The Create Features pane appears.

  5. In the Create Features pane, click the layer in which you want to add barriers and create new 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 you want to create from the BarrierType drop-down menu.
    • Restriction—This is the default. Directions avoid going through the barrier and route around it.
    • Added Cost—Adds a delay to the route for a point barrier.
    • Scaled Cost—Adds a delay 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 your point barriers as floor aware.
    Note:

    Only point barriers can be configured as floor aware.

  10. Optionally, configure your 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 have configured your map as floor aware, you can configure point barriers as floor aware. To make a point barrier layer floor aware, complete the following:

  1. Right-click the Point Barriers layer and choose 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 choose Design > Fields.
  7. Add a value to the LEVEL_ID field for each barrier feature that matches the LEVEL_ID 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:

  1. Right-click the barrier layer and choose Design > Fields.
  2. Add a new field named START_TIME of type Date if your feature class does not already have a field for start time.
  3. Add a new field named END_TIME of type Date if your feature class does not already 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 parameters.
    Note:

    If there is no end time field defined or if the end time field is defined but there is no value 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.
    Note:

    Time values must be in UTC.

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