Skip to content
@naviqore

naviqore

Efficient Public Transit Routing with RAPTOR: A Production-Ready Solution Leveraging GTFS Data

Naviqore

Public transportation systems play a crucial role in urban mobility, connecting millions of people daily. Efficient routing algorithms are essential for optimizing transit journeys, minimizing travel time, and enhancing user experience. In this Master's thesis, we delve into the challenges of public transit routing and explore innovative approaches to address them.

Thesis | Slides

Motivation

The motivation behind our thesis lies in addressing several key challenges:

  1. Open Data: In recent years, a growing number of public transit agencies have started to publish their schedules in the open standard GTFS (General Transit Feed Specification) as open data [1]. Maintaining a public transit schedule is a resource-intensive task, making it previously inaccessible for small companies or private individuals to access or generate such datasets. Working with these large and complex datasets poses interesting challenges concerning efficient data structures and processing approaches.

  2. Complexity: Routing in public transit systems is inherently complex due to the time-dependent nature of the network. The schedules of public transit services are not static; they vary based on time of day, day of the week, and other factors. This time-dependency adds a layer of complexity to the routing process, making it a challenging problem to solve efficiently.

  3. Performance: Traditional graph-based transit routing algorithms often struggle with large-scale networks, resulting in time-consuming requests. The RAPTOR (Round-based Public Transit Routing) algorithm, known for its speed and accuracy, offers a promising solution [2].

Implementing a public transit service integrates various aspects of the MAS Software Engineering curriculum, including architecture and design, algorithms and data structures, project automation, communication in distributed systems, testing, and containerized deployment. Working in a team with an agile, iterative setup provides an exciting opportunity to address these challenges effectively and learn from mistakes during the software development process.

Approach

Our approach involves the following key components:

  1. GTFS: We use public transit schedules in the General Transit Feed Specification (GTFS) format as data source. GTFS provides a standardized format for transit schedules, including static information (such as stop times, routes, and trips) and eventually real-time updates.

  2. RAPTOR Algorithm: The RAPTOR algorithm, based on time-expanded networks, efficiently computes transit routes by considering time-dependent constraints.

  3. Public Transit Service: This integration layer adds abstraction between the publicly visible interface and the core components, such as the routing algorithm and schedule data source. This will allow for exchanging those components without interfering with any outside dependencies on the service.

  4. Web Application: Around the core routing functionality, we develop a simple web application. The frontend will allow users to explore schedules, query connections, and assess accessibility. The backend continuously updates the static schedule.

References

[1] General Transit Feed Specification. (n.d.). Retrieved May 25, 2024, from https://gtfs.org/

[2] Delling, D., Pajor, T., & Werneck, R. F. (2012). Round-Based Public Transit Routing. In 2012 Proceedings of the Meeting on Algorithm Engineering and Experiments (ALENEX) (pp. 130-140). SIAM. https://doi.org/10.1137/1.9781611972924.13

Pinned Loading

  1. documentation documentation Public

    Documentation of the Naviqore public transit routing project.

  2. public-transit-viewer public-transit-viewer Public

    Viewer to interact with the public transit service.

    Python 3

  3. public-transit-service public-transit-service Public

    Public transit schedule information and connection routing service based on GTFS data and the RAPTOR algorithm.

    Java 6 1

Repositories

Showing 7 of 7 repositories
  • public-transit-service Public

    Public transit schedule information and connection routing service based on GTFS data and the RAPTOR algorithm.

    naviqore/public-transit-service’s past year of commit activity
    Java 6 MIT 1 1 5 Updated Dec 20, 2024
  • public-transit-viewer Public

    Viewer to interact with the public transit service.

    naviqore/public-transit-viewer’s past year of commit activity
    Python 3 MIT 0 0 5 Updated Dec 16, 2024
  • public-transit-client Public

    Client to access the public transit service API endpoints.

    naviqore/public-transit-client’s past year of commit activity
    Python 3 MIT 0 0 5 Updated Dec 9, 2024
  • .github Public
    naviqore/.github’s past year of commit activity
    0 MIT 0 0 0 Updated Oct 24, 2024
  • documentation Public

    Documentation of the Naviqore public transit routing project.

    naviqore/documentation’s past year of commit activity
    0 MIT 0 0 0 Updated Sep 27, 2024
  • raptorxx Public

    C++ Implementation of the RAPTOR algorithm for benchmarking.

    naviqore/raptorxx’s past year of commit activity
    C++ 1 MIT 0 0 0 Updated Sep 27, 2024
  • deployment Public

    Deployment configurations for the public transit service and viewer.

    naviqore/deployment’s past year of commit activity
    Smarty 1 MIT 0 0 0 Updated Sep 26, 2024

Top languages

Loading…

Most used topics

Loading…