Using QGIS to Create Isochrone Maps and Identify Shortest, Fastest Routes

When it comes to analysing accessibility and travel time, isochrone maps in QGIS are invaluable. These maps use data on travel times and transportation networks to determine how long it takes to travel from one place to another. Several QGIS plugins and tools make isochrone mapping easy. Planners, road engineers, and mapping enthusiasts can gain a better understanding of accessibility patterns in space and make more informed transportation, urban planning, and resource allocation decisions by visualizing travel times.

QGIS tutorial for mapping shortest and fastest routes

A set of start points and destination points were created for this tutorial. The ORS tool in QGIS was used to create isochrones showing 10 and 15 minutes of drive time from the start points. Also, the fastest and shortest routes between the start points, as well as a matrix showing all the possible combinations (time and distance) needed to travel between the start points and destination points, were estimated.

Figure 1: A summary of the geospatial methodology used in creating isochrones and determining the fastest and shortest routes from start points to destination points in QGIS.

Install Quickmap services and the ORS tools plugin

The Quickmap services plugin helps us to display OpenStreetMap as a base layer for our analysis. To add the OpenStreetMap onto the map canvas:

  1. Launch and open a new project in QGIS. 
  2. From the menu bar, select Project.
  3. Select Save as to name and save this project.  

A screenshot showing the menu item for saving a project in QGIS.

Figure 2: Saving a new project in QGIS.
  1. Select Plugins from the menu tab.
  2. Open “Manage and Install Plugins”, type, and search Quickmap services from the search bar. 
  3. Upgrade the quickmap plugin, where necessary and install. 
  4. From the menu options, select Web. 
  5. Select QuickMap services and choose OSM from the pool of options.
  6. Select OSM standard to display the openstreet layer onto the map canvas. 

Screenshot from QGIS showing how to add OSM as a base map.

Figure 3: Displaying OpenStreet onto the map canvas as a base map.

The ORS tools plugin is used for determining isochrones around sets of points and determining fastest and shortest routes from start points to destination points. To install the plugin;

  1. Select Plugins from the menu tab.
  2. Open “Manage and Install Plugins”, type, and search ORS tools from the search bar. 
  3. Upgrade the plugin, where necessary and install.

Screenshot showing the information page for the ORS plugin in QGIS.

Figure 4: Installing the ORS Tools plugin in QGIS.

Determining the fastest and shortest paths in QGIS

For this tutorial, we will select three start points and save them as a vector layer by digitizing;

  1. Right-click on any part of the menu bar and select “Browser” from the pool of options that displays to enable the browser panel.
  2.  Toggle to a location where you would like to save the start points. 

Screenshot showing the menu item for saving a new vector layer in QGIS.

Figure 5: Creating a new vector layer (shapefile).
  1. File name automatically captures the location as specified in the Browser panel. 
  2. Set Geometry type to points. 
  3. Click Ok to create a new point vector layer. 
  4. Drag and drop the “start points” layer from the Browser onto the map canvas. 
  5. Right-click on the “start points” layer and select toggle editing. 
  6. Pan to three points on the OSM layer where you would want the analysis to be conducted.
  7. From the array of icons, use “Add point feature” tool to select start points.  

Screenshot showing a clipped view of the QGIS menu with an arrow pointing to the "add point features" menu option.

Figure 6: The Add Point Feature tool in QGIS.
  1. Use the save tool on the immediate left of “Add point feature” to save changes. 
  2. Repeat the steps to create a new point layer to represent destination points.  

Finding the fastest routes for a set a locations

To determine the fastest routes from our start points:

  1. Select ORS tools from the web tab on the menu bar. 
  2. Select the Signup option to register. After registration, you will be allowed to create a new token and generate an API key. Copy the API key and paste it into the settings window of the ORS Tools plugin.

Screenshot showing the interface for entering the API key for the ORS QGIS plugin.

Figure 7: Settings panel of the ORS Tools plugin.
  1. Select the Batch Jobs tab. 
  2. Select Points (layer 1). 
  3. Set the travel mode to “driving car.”
  4. Set input point layer to start points. 
  5. Set travel preference to fastest. 
  6. Set Layer ID to ID. 

Screenshot showing the input parameters for mapping fastest routes using the ORS plugin in QGIS.

Figure 8: Determining the fastest routes between sets of points with the ORS plugin in QGIS.

After you have set the parameters:

  1. Click Run.

Screenshot showing a base OpenStreeMap in QGIS with a blood red line showing the fastest route between two points.

Figure 9: Fastest route between three points in QGIS.

Finding the shortest route for a set of locations

To determine the shortest distance between our start points:

  1. Select Points (layer 1). 
  2. Set the travel mode to “driving car.”
  3. Set input point layer to start points. 
  4. Set Layer ID to ID. 
  5. Set travel preference to shortest. 
  6. Click Run.

A screenshot showing a base street map with a bold blue line for the shortest distance between three points.

Figure 10: Shortest route between three points.

Creating an isochrone map in QGIS

To create isochrones around any point on the map canvas:

  1. From the isochrones layer, select isochrones from point. 
  2. Set travel mode to driving car.
  3. Select “input point from map canvas” and specify a point on the map canvas. 
  4. Set dimension to time. 
  5. Set the comma separated ranges to be “5, 10” (min).
  6. Click Run.

Repeat the steps above to create isochrones of 10, 15 (min) around our start points by selecting “isochrones from layer.” 

Determining the matrix of possible combinations of distance-time travel

ORS Tools plugin enables us to generate all possible combinations between our two layers (start points and destination points), showing their distances and time taken. To use the matrix tool:

  1. Select matrix from the ORS window. 
  2. Set driving mode to driving car.
  3. Set “input start point layer” to start points.
  4. Set “Start ID field” to ID. 
  5. Set “input end point layer” to destination points.
  6. Set “End ID field” to ID.
  7. Click Run. A table is generated showing the possible distance-time networks from start points to destination points. You can view the contents of the matrix from the attribute table. You can also export the table to excel for viewing.

Screenshot of a map in QGIS showing 5, 10, and 15 minute drive times and a matrix in a spreadsheet showing shortest versus fastest distances between three points.

Figure 11: 10 and 15 min isochrones generated around selected start points (FROM_ID) with labels 1, 2, and 3. Point features 4, 5, and 6 represents our destination points (TO_ID). The excel window shows the results of the matrix tool, representing all the possible combinations required to move from each of the start points to destination points.

Share:

Fonte : National Geographic