A web app to explore California transit data with routes, stations, bottlenecks, low-income areas, and an AI chat assistant.
- Install dependencies:
pip install -r requirements.txt cd app && npm install
- Add a
.envfile in the root:VITE_GOOGLE_MAPS_API_KEY=your_google_maps_api_key VITE_GOOGLE_MAPS_ID=your_map_id GEMINI_API_KEY=.... ask me for it.... - Add data files to
app/public/data/(see below).
Development (live reload):
- In one terminal:
python app.py - In another:
cd app && npm run dev - Visit: http://localhost:5173
Production:
- Build React:
cd app && npm run dev - Start Flask:
python app.py - Visit: http://localhost:5173
Place these in app/public/data/:
routes.json(transit routes)bottlenecks.json(traffic bottlenecks)low_income.json(low-income areas)data.json(stations, optional)
- Interactive Google Map with transit layers
- Filter by route type, state, and mode
- Toggle bottlenecks and low-income areas
- AI Assistant: Ask questions about the map (Gemini-powered)
- Click the 🤖 button to chat about routes, bottlenecks, or transit info.
- Example: "What do the route colors mean?" or "Where are the biggest bottlenecks?"
- California Transit Routes
- Traffic Bottlenecks
- Intermodal Passenger Connectivity
- Low-Income Communities
For more details, see comments in the code. Enjoy exploring transit data!