How to calculate isochrones in public transport using pgRouting?

How to calculate isochrones in public transport using pgRouting?

This post covers a simple approach to calculating isochrones in a public transport network using pgRouting and QGIS. For this example, I’m using the public transport network of Vienna which is loaded into a pgRouting-enable database as network.publictransport.

How to calculate Isochrones for different start nodes?

To calculate isochrones for different start nodes, we simply update the definition of the view network.temp. While this approach certainly has it’s limitations, it’s a good place to start learning how to create isochrones. A better solution should take into account that it takes time to change between different lines.

How to calculate Isochrones for a routable network?

To create the routable network run: Note that the tolerance parameter 0.0005 (units are degrees) controls how far link start and end points can be apart and still be considered as the same topological network node. To calculate isochrones, we need a cost attribute for our network links.

How to calculate Isochrones for public transport in Vienna?

To calculate isochrones, we need a cost attribute for our network links. To calculate travel times for each link, I used speed averages: 15 km/h for buses and trams and 32km/h for metro lines (similar to data published by the city of Vienna ). That’s all the preparations we need.

https://www.youtube.com/watch?v=v01FbRzuTyg

How to create a routing database and isochrones?

Creating the routing database, and both extensions (postgis, pgrouting): The database we create and both extensions we add will provide the functions capable of producing isochrones.

How to create drive time isochrones using QGIS?

To begin, start by opening the command line tool ( hold control+left-alt+T) then log in to postgresql by typing “ psql -U user; ” into the command line and then press Enter. For the purpose of clear instruction I will refer to database name in this guide as “ routing ”, feel free to choose your own database name.

How to calculate shortest route with QGIS and pgRouting?

Go to View > Panels > pgRouting Layer. Clicking Preview, the algorithm will compute the shortest route between the selected points (start and end). For more details please consult our QGIS Advanced level course. By Catalin Cimpianu |. 2018-06-20T13:28:30+00:00.

How to create isochrones with the traveltime QGIS plugin?

Our TravelTime QGIS plugin lets users create travel time polygons, also known as isochrones, using many modes of transport. For example, a pizza restaurant owner can use the plugin to discover pizza delivery areas, such as where’s reachable within a 30-minute drive from their restaurant.