Istanbul Metro Route Planner
An interactive Istanbul transit route planner covering metro, tram, Marmaray, Metrobüs, and rail networks with map visualization, fare estimates, night routes, and offline routing.
The Problem
Istanbul journeys often cross multiple transit lines and transfer hubs, making route selection, fare estimation, and night-service availability difficult to understand from fragmented network information.
The Solution
Built a route-planning experience with station autocomplete, multi-line journey results, synchronized map views, transfer explanations, 2026 fare estimates, night mode routing, and a bundled offline graph for reliable use without connectivity.
Routing Engine
Uses Dijkstra graph search over the Istanbul transit network with canonical station identities and multi-route results.
Map-Synchronized Journey UI
Presents geographic Leaflet maps, an SVG schematic network, line badges, transfer cards, and journey timelines.
Offline Android Experience
Falls back to a local 367-node graph and adds GPS station lookup, haptics, safe areas, and Android back-button handling.
Architecture & Features
A React/Vite frontend backed by FastAPI and SQLite graph data, packaged as a Capacitor Android app with online and offline routing paths.
- Frontend: React 19 + Vite + Tailwind CSS
- Maps: Leaflet geographic map + custom SVG schematic map
- Backend: FastAPI routing API with CORS and rate limiting
- Routing: Dijkstra graph engine, NetworkX, SQLite transit data, and local JSON fallback
- Mobile: Capacitor 8 with GPS, haptics, safe-area, status-bar, and hardware back-button integrations
Technologies Used
Project Gallery
Future Improvements
- Add station line badges and disambiguation to autocomplete results.
- Add a one-click origin/destination swap control.
- Replace native alerts with in-app loading and error states.
- Synchronize card hover states with individual map route segments.