A route planner for the Île-de-France transport network, from open data to a JavaFX app
Academic project · 2024–2025
A Java desktop app that turns Île-de-France open data into a network graph and finds a route between two stations with Dijkstra. Team project, team leader.
In short
- What it is
- A Java/JavaFX desktop application that downloads Île-de-France Mobilités open data, builds a graph of the transport network, and finds a route between two stations with Dijkstra's algorithm.
- Why
- A software-engineering course project: take real open data through a full pipeline, from download to a working graphical route planner.
- My role
- Team project, team leader. No individual split of the work is claimed.
- Domains and tech
- Software engineering. Java 17, Maven, JavaFX, OpenCSV, Dijkstra, JUnit 5.
- Status
- Academic project. A working prototype. It finds and displays a route with line changes, but the journey times are placeholders, so it isn't a real travel-time calculator.
- Period
- 2024 – 2025
Context and problem
A software-engineering team project at Université Paris Cité (the window is titled “IDFM Navigator - Université Paris Cité”). The goal was to plan a trip between two stations of the Île-de-France network from the region’s open data, as a desktop application. I was the team leader.
RouteFinderApp.java (window title); known-facts.md (team leader)Architecture
It is a local desktop app with no server and no database. It downloads two CSV exports over HTTPS from the Île-de-France Mobilités open-data portal (line traces and stops per line), joins them by route into a network file of stop pairs with haversine distances, then reads that file into a graph and searches it.
Implementation
The graph and the search. The route search is Dijkstra’s algorithm over a priority queue, on nodes that are (stop, line) pairs so that staying on a line and changing lines are different moves. A line change is a fixed 5-minute edge between stops with the same name on different lines. The path is rebuilt from predecessor links, and a console front end runs the same search.
The interface. A JavaFX window (built with FXML and CSS) has type-to-filter station pickers, date and time pickers, and renders the itinerary step by step with a line badge and a “Correspondance” marker, plus the total duration and the departure and arrival times.
Tests. Nine JUnit 5 tests cover the graph (duplicate cleaning, connectivity, neighbours), the path finder (a simple path, a transfer, no path, a three-line network) and a data loader (valid load, invalid file, unknown stop), using temporary files.
Limitations
This is a prototype, and the honest limits are in the route it produces:
- Every in-line segment counts as 5 minutes. The route finder starts each segment at 5 minutes and its time adjustment comes back to 5, and it never reads the estimated durations stored in the network file. So the route shown minimises stops plus line changes, not real travel time.
- The date and time don’t change the route. They are only used to display a departure and arrival time.
- Station names are cleaned for display but matched raw. The list shows tidied names while the search compares the original names exactly, so some lookups can miss.
- The network is built from file order. Stops are paired in the order they appear in the data rather than along the real line sequence, the last stop of each line is dropped, and routes that share a short name are merged.
- No measured result. There is no accuracy or performance figure and no user test.
Some design documents (a deployment diagram with a database and an HTTP backend) describe an architecture the code doesn’t build; the application is the local app above.
Possible next steps
Read the stored durations instead of the fixed 5 minutes, order stops along each line from the trace data, match on the cleaned names, and use the chosen time to pick departures. These are contained changes to the formatter and the route finder.