Creating a Safe Route to School Map with MRN
Software Requirements
QGIS 3.24 or later
Data Requirements
Import your
roadlink,pathlinkandMulti-modal Routing Networkdata into QGISReproject your
Multi-modal Routing Networkdata into British National Grid (ESPG: 27700)Filter
roadlink,pathlinkandMulti-modal Routing Networkdata further if needed, e.g. if only interested in roads under 30mphImport your residential and educational addresses into QGIS
Select a school of interest from educational addresses and create this as a new layer
Building the network
QGIS has built in tools for network analytics such as service area and shortest path. However, for a visually clearer output, we will be using a plugin called QNEAT3.
Select ‘Plugins’ > ‘Manage and Install Plugins’ and search for ‘QNEAT3’. Select ‘Install Plugin’.

Once the plugin is installed, it will appear in the processing toolbox. The tool offers various analysis options, but for now select QNEAT3 – Qgis Network Analysis Toolbox > Distance Matrices > OD Matrix from Layers as Lines (m:n).
This will create a network output of the shortest paths between two sets of points.
Creating the shortest distance network
Use your
Multi-modal Routing Networklayer as your Network LayerSet From-Point Layer as residential addresses
Set To-Point Layer as the example school address
Set Generated matrix geometry style to be Matrix geometry follows routes

Joining attributes to the output network
Use Join attributes by location (summary) with Multi-modal Routing Network, joining to your new network and calculating mean avgspeed:forward along the routes

Again use Join attributes by location (summary) with the merged Multi-modal Routing Network , joining to your new network and calculating mean presenceofstreetlight_coverage and os_overallpavementpresence

Merging roadlink and pathlink and joining streetlight attribution
Merge roadlink and pathlink layer together to make one layer using the Merge Vector Layers tool in QGIS

Use Join attributes by location with merged roadlink and pathlink, joining to your new network, setting the join type to ‘largest overlap (one-to-one)’ and taking the presenceofstreetlight_coverage attribute

Adding a Score attribute
Open the Field Calculator in QGIS.
Add new attributes called streetlightrating, 20mphzone and presenceofpavementrating, to OD Matrix layer and calculate a numerical value to these according to requirements.
Multiply these scorings together to get one overall rating for each route to school and style accordingly to highlight hotspots of safe and less safe routes

Example Output – RAG Map
Each potential route from an address to the school is classified into Red, Amber and Green, which can help to highlight areas which may be less safe for school transport.
Routes can either be isolated if interested in a specific area or combined to give a clearer picture of walkability over a wider area.
Note that these are example ratings to demonstrate output and should not be taken verbatim.

Possibilities to Enhance Results
Filtering by Bus to look at bus routes to schools, and including bus stop data (e.g. NAPTAN)
Look at crime statistics which may also affect route safety (e.g. ONS)
Look at additional pavement attribution such as width of pavement for accessibility for buggies (in OS Data)
Creating the RAG Map - step by step process
Import your
roadlink,pathlink,Multi-modal Routing Networkandaverageindicativespeeddata into QGISReproject your
Multi-modal Routing Networkdata into British National Grid (ESPG: 27700)Import your residential and educational addresses into QGIS
Select school of interest and create this as a new layer
Use OD Matrix from Layers as Lines (M:N) from QNEAT3 Plugin, using your
Multi-modal Routing Networkas your Network Layer, From-Point Layer as being residential addresses, To-Point Layer being the school address and setting cost strategy to be along network featuresUse Join attributes by location (summary) with
Multi-modal Routing Network, joining to your new network and calculating meanavgspeed:forwardalong routesUse Join attributes by location (summary) with
Multi-modal Routing Network, joining to your new OD Network and calculating meanos_overallpavementpresencealong routesMerge
roadlinkandpathlinklayer together to make one layerUse Join attributes by location with merged
roadlinkandpathlink, joining to your new network, setting the join type to ‘largest overlap (one-to-one)’ and taking thepresenceofstreetlight_coverageattributeAdd new attributes called ‘
streetlightrating’, ’20mphzone’ and ‘presenceofpavementrating’, to OD Matrix layer and calculate a numerical value to these according to requirementsMultiply these scorings together to get one overall rating for each route to school
Style accordingly to highlight hotspots of safe and less safe routes
Last updated
Was this helpful?
