ULTRA is a C++ framework for efficient journey planning in multimodal networks consisting of public transit and non-schedule-based transfer modes (e.g., walking, cycling, e-scooter). It was developed at KIT in the group of Prof. Dorothea Wagner. This repository contains code for the following publications:
-
UnLimited TRAnsfers for Multi-Modal Route Planning: An Efficient Solution Moritz Baum, Valentin Buchhold, Jonas Sauer, Dorothea Wagner, Tobias Zündorf In: Proceedings of the 27th Annual European Symposium on Algorithms (ESA'19), Leibniz International Proceedings in Informatics, pages 14:1–14:16, 2019 pdf arXiv
-
Integrating ULTRA and Trip-Based Routing Jonas Sauer, Dorothea Wagner, Tobias Zündorf In: Proceedings of the 20th Symposium on Algorithmic Approaches for Transportation Modelling, Optimization, and Systems (ATMOS'20), OpenAccess Series in Informatics, pages 4:1–4:15, 2020 pdf
-
Fast Multimodal Journey Planning for Three Criteria Moritz Potthoff, Jonas Sauer In: Proceedings of the 24th Workshop on Algorithm Engineering and Experiments (ALENEX'22), SIAM, pages 145–157, 2022 pdf arXiv
-
Efficient Algorithms for Fully Multimodal Journey Planning Moritz Potthoff, Jonas Accepted for publication at the 22nd Symposium on Algorithmic Approaches for Transportation Modelling, Optimization, and Systems (ATMOS'22)
All query algorithms and preprocessing steps are available via the console application ULTRA, which can be compiled using the Makefile located in the Runnables folder. It includes the following commands:
- CH computation:
buildCHperforms a regular CH precomputation. The output is required by the (Mc)ULTRA query algorithms, which use it to perform the Bucket-CH precomputation.buildCoreCHperforms a Core-CH precomputation. The output is required by the (Mc)ULTRA shortcut computation and by the MCSA and M(C)R query algorithms.
- (Mc)ULTRA shortcut computation:
computeStopToStopShortcutscomputes stop-to-stop ULTRA shortcuts for use with ULTRA-RAPTOR.computeEventToEventShortcutscomputes event-to-event ULTRA shortcuts for use with ULTRA-TB.computeMcStopToStopShortcutscomputes stop-to-stop McULTRA shortcuts for use with ULTRA-McRAPTOR and UBM-RAPTOR.computeMcEventToEventShortcutscomputes event-to-event McULTRA shortcuts for use with ULTRA-McTB and UBM-TB.augmentTripBasedShortcutsperforms the shortcut augmentation step that is required for UBM-TB.validateStopToStopShortcutsandvalidateEventToEventShortcutstest the validity of the computed shortcuts by comparing them to paths in the original transfer graph.
- Original TB preprocessing:
raptorToTripBasedtakes a network in RAPTOR format as input and runs the TB preprocessing algorithm.- With a transitively closed transfer graph as input, this performs the original TB preprocessing.
- With stop-to-stop ULTRA shortcuts as input, this performs the sequential ULTRA-TB preprocessing.
- The parameter "Route-based pruning?" enables the optimized preprocessing proposed by Lehoux and Loiodice.
- Query algorithms:
| Command | Algorithm | Transfers | Query type | Criteria |
|---|---|---|---|---|
runTransitiveCSAQueries |
CSA | Transitive | Stop-to-stop | Arrival time |
runDijkstraCSAQueries |
MCSA | Unlimited | Vertex-to-vertex | Arrival time |
runHLCSAQueries |
HL-CSA | Unlimited | Vertex-to-vertex | Arrival time |
runULTRACSAQueries |
ULTRA-CSA | Unlimited | Vertex-to-vertex | Arrival time |
runTransitiveRAPTORQueries |
RAPTOR | Transitive | Stop-to-stop | Arrival time, number of trips |
runDijkstraRAPTORQueries |
MR | Unlimited | Vertex-to-vertex | Arrival time, number of trips |
runHLRAPTORQueries |
HL-RAPTOR | Unlimited | Vertex-to-vertex | Arrival time, number of trips |
runULTRARAPTORQueries |
ULTRA-RAPTOR | Unlimited | Vertex-to-vertex | Arrival time, number of trips |
runTransitiveMcRAPTORQueries |
McRAPTOR | Transitive | Stop-to-stop | Arrival time, number of trips, transfer time (full) |
runMCRQueries |
MCR | Unlimited | Vertex-to-vertex | Arrival time, number of trips, transfer time (full) |
runULTRAMcRAPTORQueries |
ULTRA-McRAPTOR | Unlimited | Vertex-to-vertex | Arrival time, number of trips, transfer time (full) |
runTransitiveBoundedMcRAPTORQueries |
BM-RAPTOR | Transitive | Stop-to-stop | Arrival time, number of trips, transfer time (restricted) |
runUBMRAPTORQueries |
UBM-RAPTOR | Unlimited | Vertex-to-vertex | Arrival time, number of trips, transfer time (restricted) |
runTransitiveTripBasedQueries |
TB | Transitive | Stop-to-stop | Arrival time, number of trips |
runULTRATripBasedQueries |
ULTRA-TB | Unlimited | Vertex-to-vertex | Arrival time, number of trips |
runULTRAMcTripBasedQueries |
ULTRA-McTB | Unlimited | Vertex-to-vertex | Arrival time, number of trips, transfer time (full) |
runBoundedULTRAMcTripBasedQueries |
UBM-TB | Unlimited | Vertex-to-vertex | Arrival time, number of trips, transfer time (restricted) |
We use custom data formats for loading the public transit network and the transfer graph: The Intermediate format allows for easy network manipulation, while the RAPTOR format is required by the preprocessing and all query algorithms except for CSA, which uses its own format. The Switzerland and London networks used in our experiments are available at https://i11www.iti.kit.edu/PublicTransitData/ULTRA/ in the required formats. Unfortunately, we cannot provide the Germany and Stuttgart networks because they are proprietary.
The Network application provides commands for manipulating the network data and for converting public transit data to our custom format. It includes the following commands:
parseGTFSconverts GFTS data in CSV format to a binary format.gtfsToIntermediateconverts GFTS binary data to the Intermediate network format.intermediateToCSAconverts a network in Intermediate format to CSA format.intermediateToRAPTORconverts a network in Intermediate format to RAPTOR format.loadDimacsGraphconverts a graph in the format used by the 9th DIMACS Implementation Challenge to our custom binary graph format.duplicateTripsduplicates all trips in the network and shifts them by a specified time offset. This is used to extend networks that only comprise a single day to two days, in order to allow for overnight journeys.addGraphadds a transfer graph to a network in Intermediate format. Existing transfer edges in the network are preserved.replaceGraphreplaces the transfer graph of a network with a specified transfer graph.reduceGraphcontracts all vertices with degree less than 3 in the transfer graph.reduceToMaximumConnectedComponentreduces a network to its largest connected component.applyBoundingBoxremoves all parts of a network that lie outside a predefined bounding box.applyCustomBoundingBoxremoves all parts of a network that lie outside a specified bounding box.makeOneHopTransferscomputes one-hop transfers for all stops whose distance is below a specified threshold. This is used to create a transitively closed network for comparison with non-multi-modal algorithms.applyMaxTransferSpeedapplies a maximum transfer speed to all edges in the transfer graph.applyConstantTransferSpeedapplies a constant transfer speed to all edges in the transfer graph and computes the travel times accordingly.
An example script that combines all steps necessary to load a public transit network is provided at Runnables/BuildNetworkExample.script. It can be run from the Network application using runScript BuildNetworkExample.script. It takes as input GFTS data in CSV format located at Networks/Switzerland/GTFS/ and a road graph in DIMACS format located at Networks/Switzerland/OSM/dimacs.
The algorithms listed above support public transit plus one transfer mode. Additionally, this framework provides algorithms for multimodal networks with multiple transfer modes. The required multimodal data structures can be built with the following commands in Network:
buildMultimodalRAPTORDataconverts unimodal RAPTOR data into multimodal RAPTOR data. Note that it does not add any transfer graphs.addModeToMultimodalRAPTORDataadds a transfer graph for a specified transfer mode to the given multimodal RAPTOR data.buildMultimodalTripBasedDataconverts unimodal TB data into multimodal TB data. Note that it does not add any transfer graphs.addModeToMultimodalTripBasedDataadds a shortcut graph for a specified transfer mode to the given multimodal TB data.
ULTRA shortcuts for networks with multiple transfer modes can be computed with the following commands in ULTRA:
computeMultimodalMcStopToStopShortcutscomputes multimodal stop-to-stop McULTRA shortcuts for use with ULTRA-McRAPTOR and UBM-RAPTOR.computeMultimodalMcEventToEventShortcutscomputes multimodal event-to-event McULTRA shortcuts for use with UBM-HydRA.
The ULTRA application offers the following query algorithms. All algorithms optimize arrival time, number of trips and one transfer time criterion per transfer mode.
runMultimodalMCRQueries: MCR for full Pareto setsrunMultimodalULTRAMcRAPTORQueries: ULTRA-McRAPTOR with stop-to-stop shortcuts for full Pareto setsrunMultimodalUBMRAPTORQueries: UBM-RAPTOR with stop-to-stop shortcuts for restricted Pareto setsrunMultimodalUBMHydRAQueries: UBM-HydRA with event-to-event shortcuts for restricted Pareto sets