This is the second article based on our talk with Trevor Baldwin from Yorkshire Ambulance Service NHS Trust. In the first article, we looked into loading and mapping incident data.
In this article, we will investigate one way to split the area that the ambulance service covers between the various locations of their service vehicles. This can be used for other use cases where you have some known locations and a catchment area.
You can split your area into districts using Voronoi polygons to get a rough division. This will give you an overview of what area lies closest to which location – using a straight-line analysis. That's the method we will use in the article today.
In a later article, we will use a more precise drivetime analysis to calculate drivetime zones around the locations.
We start with the map below where you can see the area of interest, the locations, and the incidents for a given period.
Note that the incident points are dummies and don't relate to real-life incidents.
I use the term 'fire stations' to refer to the locations where emergency teams are based. You could also refer to these as emergency medical service (EMS) stations.
Happy #MapInfoMonday!
Create Voronoi Polygons around the Fire Stations
Let's start by creating some rough areas for the individual fire stations. As mentioned above, we do this using Voronoi polygons.
I start by making my layer Area of Interest editable. I then select the single polygon in that layer and set it as the target via the Set Target control on the Spatial tab. You can also use the shortcut Ctrl + T.
This will make the Voronoi polygons we are about to create align with this polygon as the outer boundary and ensure the Voronoi polygons will cover the entire area. If I didn't set this polygon as the target, the Voronoi polygons would only cover an area equal to the minimum boundary rectangle of the ambulance locations.
I initiate the Voronoi process from the Regions dropdown on the Spatial tab by clicking on the Voronoi (Table) control.
In the Table Voronoi dialog, I select the Fire Stations table as my locations, and I set Store results in table: to <New>.
In the New Table dialog, I select Add to Current Mapper and select to base the table structure of the new table on the Fire Stations table.
In the New Table Structure dialog, I keep the columns from the Fire Stations table. I could remove some columns and also add additional columns. I could add a column to hold the number of incidents, as an example.
Number of Incidents in the Voronoi Polygons
As a final step today, we will analyze and visualize the count of incidents inside each of these Voronoi polygons. This will give us an idea of how busy the fire stations are.
We will do this through a thematic map.
From the Map tab, I click on Add Theme.
In the Create Thematic Map – Step 1 of 3 dialog, I select Ranges as Thematic Type. I must now select a thematic template. Make sure that you select a template for regions.
I click on the Next > button to continue.
In the dialog, I also check the Ignore Zeroes and Blanks option. This will keep the polygons with a value of zero out of the final thematic map.
The Create Thematic Map – Step 3 of 3 dialog gives me a look at the result. I'll accept this without making any adjustments.
------------------------------
Peter Horsbøll Møller
Principal Presales Consultant | Distinguished Engineer
Precisely | Trust in Data
------------------------------