- Java 23 or higher
To compile the project, run the following command in the root directory:
mvn clean compileTo run the application with Maven:
mvn exec:java -Dexec.mainClass="algo.transit.BETransitPathfinder" -Dexec.args="[arguments]"Replace [arguments] with the appropriate command-line arguments (see below).
Alternatively, after compiling, you can run the application directly with Java:
java -cp target/classes algo.transit.BETransitPathfindernsitPathfinder [arguments]The application requires at least three arguments:
START_STOP END_STOP START_TIME [OPTIONS]
START_STOP: The ID of the starting stop (e.g., "SNCB-S8891660")END_STOP: The ID of the destination stop (e.g., "TEC-X615aya")START_TIME: The departure time in HH:MM format (e.g., "10:30")
--walking-speed <speed>: Set walking speed in meters per minute (default: 80.0)--max-walk-time <time>: Set maximum walking time in minutes (default: 10.0)--forbidden-modes <modes>: Set forbidden transport modes (e.g., BUS, TRAIN)--mode-weights <mode:weight>: Set custom weights for transport modes (e.g., BUS:1.5 TRAIN:0.8)--arrive-by: Find path arriving at specified time, not departing--optimization-goal <goal>: Set optimization goal: time|transfers|walking (default: time)--output-format <format>: Set output format: detailed|summary (default: detailed)--show-stats: Show detailed statistics about the found path--help: Display help message