Finding routes in a public transport network. A case study

There is a need for reliable and trustworthy public transport planner services. Mass transits are trying to solve problems as traffic jams or increasing pollution in densely populated city agglomerations. Passengers are looking for travel information on-line and companies providing public transport solutions often struggle with providing modern trip planner platforms. We address this problem by providing simple and easy to implement solution for shortest paths computation in public transport network of any size. In first part of the paper we present our approach to building time-expanded graph model of public transportation network. We use a structure with multiple vertices within one stop identified by triple (stop, time, line) and edges with constant travel times. Second part introduces k-shortest paths algorithm for created graph. We provide step by step explanation along with code samples. Average algorithm response time is around 1.5s for a public transport network of the size over 2800 stops. This is accepted query time for a web application. None additional speed-up techniques has been used to keep implementation and explanations simple and leaving room for further improvements. Algorithm has been successfully tested in Upper Silesian Industrial District (GOP) in cooperation with main public transport provider in the area (KZK GOP). This real instance is the biggest one in Poland and contains 370 lines and over 2800 stops.

[1]  Matthias Müller-Hannemann,et al.  Accelerating Time-Dependent Multi-Criteria Timetable Information is Harder Than Expected , 2009, ATMOS.

[2]  Karsten Weihe,et al.  Dijkstra's algorithm on-line: an empirical case study from public railroad transport , 2000, JEAL.

[3]  Ronald L. Rivest,et al.  Introduction to Algorithms, third edition , 2009 .

[4]  Olatz Arbelaitz,et al.  Public Transportation Algorithm for an Intelligent Routing System , 2009 .

[5]  Xin-She Yang,et al.  Introduction to Algorithms , 2021, Nature-Inspired Optimization Algorithms.

[6]  Kayhan Erciyes Distributed Graph Algorithms for Computer Networks , 2013, Computer Communications and Networks.

[7]  Edsger W. Dijkstra,et al.  A note on two problems in connexion with graphs , 1959, Numerische Mathematik.

[8]  Bernd Ludwig,et al.  ROSE: assisting pedestrians to find preferred events and comfortable public transport connections , 2009, Mobility Conference.

[9]  Bernd Ludwig,et al.  Recommendation of Personalized Routes with Public Transport Connections , 2009, IMC.

[10]  Robert Sedgewick,et al.  Algorithms, 4th Edition , 2011 .

[11]  Zhiyong Xu,et al.  TDplanner: Public Transport Planning System with Real-Time Route Updates Based on Service Delays and Location Tracking , 2011, 2011 IEEE 73rd Vehicular Technology Conference (VTC Spring).

[12]  Gerhard Weber,et al.  RouteCheckr: personalized multicriteria routing for mobility impaired pedestrians , 2008, Assets '08.

[13]  Jolanta Koszelew Two Methods of Quasi-Optimal Routes Generation in Public Transportation Network , 2008, 2008 7th Computer Information Systems and Industrial Management Applications.