Skip to main content

Building safer school routes with ArcGIS Online

How can planners and school boards make walking and biking routes safer for students? This blog post shows how ArcGIS Online turns open data into actionable insights using ModelBuilder, Arcade and tessellation. Learn step-by-step techniques to analyse collision data and visualise safety risk around schools.

Every day, children walk or bike to school. By analyzing traffic collisions near elementary schools, planners and school boards can gain insight into where safety improvements may be needed.

At the 2025 Esri Canada User Conference, we demonstrated how spatial analysis turns open data into targeted action for safer school routes.

In this blog post, we’ll walk through the key techniques behind that demo using ArcGIS Online Map Viewer, so you can try them yourself.

Watch the full demo

Demo context and data

The goal was to identify where safety interventions should be prioritized by measuring risk around elementary schools and connecting that risk to student volumes.

The demo focused on two layers from Open Ottawa (Ottawa's open data hub):

  • Schools
    • Filtered to elementary schools
    • Note: Arbitrary attendance values were allocated to elementary schools for analysis.

  • Traffic Collision Data
    • Key fields:
      • X and Y Coordinate for location
      • Maximum Injury (highest injury level in the collisions)
      • Four fields describing the number of affected parties (vehicle, pedestrian, bicycle and motorcycle)

Screenshot of the data table in the Traffic Collision Data layer highlighting the main fields.

Snippet of Traffic Collision Data layer

Part 1: ModelBuilder in Map Viewer

ModelBuilder in ArcGIS Online Map Viewer lets you design and run multi-step spatial analyses entirely in the browser, no coding required.

Workflows can be built once and reused year after year, ensuring consistency and saving time for recurring analyses.

The model in this demo had four major steps:

Screenshot of School Safety Ranking Model from ModelBuilder in ArcGIS Online.

ModelBuilder workflow in Map Viewer

Step 1: Filter collisions

Filter collisions to focus on incidents involving pedestrians and cyclists using the Filter By tool.

Tip: Use Intermediate data as an output option. This will allow you to run the model without saving working layers.

Video of the Traffic Collision Data layer being filtered by collisions involving pedestrians and/or cyclists.

Filter By settings on the Traffic Collision Data layer

Step 2: Calculate a safety risk score

Calculate a safety risk score by counting these incidents and applying extra weight for injuries and fatalities using the Calculate Composite Index tool.

Video of the Composite Index settings for the filtered collisions.

Composite Index settings for the filtered collisions

Stylised result layer:

Screenshot of Cyclist and Pedestrian Traffic Collisions layer stylised by Collision Type in Map Viewer.

Configured and stylised Cyclist and Pedestrian Traffic Collisions layer

Step 3: Generate walking areas

Create a 1 km walking distance around each school (a typical range for students) using the Generate Travel Areas tool.

Tip: Use variables to set single or multiple cutoff distances.

Screenshot of the Generate Travel Areas settings on the Schools layer in Map Viewer.Generate Travel Areas settings on the Schools layer

Step 4: Summarise collisions

Aggregate collisions and their risk scores (Step 2) into the 1 km walking areas using (Step 3) using the Summarize Within tool.

Screenshot of the Summarize Within settings on the results from step 2 and 3 layers in Map Viewer.

Summarize Within settings on the results from steps 2-3

Stylised result layer:

Screenshot of 1 km School Walking Area layer stylised by Incident Score in Map Viewer.

Configured and stylised 1 km School Walking Area layer

Result: This converts raw collision data into a clear measure of safety risk for each school and becomes a repeatable process that teams can rerun as new data is published.

Get started with ModelBuilder in ArcGIS Online

Part 2: Animated Symbology with Arcade

To ensure severe collisions stand out, we used animated symbology powered by Arcade. Fatal pedestrian or cyclist collisions pulse on the map, immediately drawing attention.

Video of the pulsing animation on the Cyclist and Pedestrian Traffic Collisions layer in Map Viewer.

Animated symbology on the Cyclist and Pedestrian Traffic Collisions layer

Step 1: Create custom attributes using an Arcade expression in the Styles pane.

Note: Using the Cyclist and Pedestrian Traffic Collisions layer (see Part 1-Step 2).

Video of the Arcade code used in the custom expression on Cyclist and Pedestrian Traffic Collisions layer in Map Viewer.

Custom Expression: Collision Type on the Cyclist and Pedestrian Traffic Collisions layer

The code categorizes collisions into four types: 

  • Cyclist Fatality
  • Pedestrian Fatality
  • Cyclist Injury
  • Pedestrian Injury

A When clause then ensures fatalities are prioritized.

Code:

var cyclist = $feature.Num_of_Bi
var pedestrian = $feature.Num_Of_Ped
var fatal = $feature.Fatalities
var injured = $feature.Num_of_Inj

When (cyclist > 0 && fatal > 0, "Cyclist Fatality",
 pedestrian > 0 && fatal > 0, "Pedestrian Fatality", 
 cyclist > 0 && injured > 0, "Cyclist Injury", 
 pedestrian > 0 && injured > 0, "Pedestrian Injury", null)

Step 2: Configure basic point symbols for injuries using Types (unique symbols) on the Cyclist Injury and Pedestrian Injury.

Video of Cyclist and Pedestrian Injury symbol settings in Map Viewer

Cyclist and Pedestrian Injury symbol settings

Step 3: Configure animated vector point symbols on the Cyclist Fatality and Pedestrian Fatality.

Tip: Adjust animation speed and colour to match your map’s theme or urgency level.

Video of Cyclist and Pedestrian Fatality animated symbol settings in Map Viewer.

Cyclist and Pedestrian Fatality animated symbol settings

Secret Step 4: Add a Drop Shadow in the Effects tab, for a polished look.

Video of Drop Shadow settings in Map Viewer.

Drop Shadow settings

Result: The dynamic visualisation turns static data into a compelling story, making critical points stand out.

Part 3: Tessellation for Pattern Detection

Point data can obscure spatial patterns when dense or unevenly distributed. Tessellation normalizes data across space and H3 hexagons offer consistent geometry well suited for spatial analysis.

Step 1: Use Generate Tessellation with the 1 km Walking Areas (see Part 1 - Step 4) as the extent, in the Analysis tab.

Screenshot of Generate Tessellation tool settings in Map Viewer.

Generate Tessellation tool settings

Step 2: Use Summarize Within to aggregate collisions and risk scores (Cyclist and Pedestrian Collisions layer) into each hexagon.

Video of Summarize Within tool settings in Map Viewer.

Summarize Within tool settings

Step 3: Use the Summarize Within to aggregate count of students walking or biking to school into hexagon bins (step 2).

Note: The count of students walking or biking was calculated as 25% of the arbitrary attendance values.

Result: Hexagon bins with aggregated collisions risk scores that could be symbolised to make clusters clear immediately.

Tip: Style the bins with a Relationship style (Risk Score and Count of Students Walking/Biking) to highlight high-risk areas overlapping large numbers of students walking or biking to school.

Video of Relationship style settings in Map Viewer.

Relationship style settings

Bringing it together

ModelBuilder for structured analysis, Arcade for dynamic symbology and tessellation for pattern detection, contributed to a comprehensive view of school route safety.

When integrated into an ArcGIS Dashboard, these layers enable planners to query where walking or biking rates intersect with safety risks.

Video of an ArcGIS Dashboard zooming on elementary schools by decreasing pedestrian and cyclist safety.

ArcGIS Dashboard highlighting elementary schools by decreasing pedestrian and cyclist safety

ArcGIS Online provides tools to move beyond visualisation and deliver actionable insights. From repeatable workflows to advanced styling and spatial analysis, these capabilities highlight patterns that may inform future decision making.

Now it’s your turn to try these techniques!

Watch the 2025 Esri Canada Spatial Analytics demo

About the Author

Mary Jane Maher is a Senior Technical Solutions Specialist on Esri Canada’s Conference Experience team. She has over 10 years of experience across surveying, bridges, railroads and consulting, and has been with Esri Canada since 2022. Mary Jane is passionate about helping GIS professionals succeed through demos and storytelling. She speaks French and holds a diploma in Surveying and Geomatics.

Profile Photo of Mary Jane Maher