How saketh-debug/verdex-coolpath-project works
CoolPath is a Hyderabad-focused climate-aware mobility product: users inspect heat and tree-canopy conditions, request cooler routes, and explore walkability. The repository contains several parallel interfaces: a React web app, Streamlit app and REST backend, a separate 3D map, and WhatsApp bot. The React app’s routes and data hooks are visible; the REST backend’s sampled endpoints call climate services. Some subsystem links remain unverified because their implementations were not sampled, and no README was provided.
Main entry points: App.jsx Web router · hooks.js API hooks · main.py REST API · routing.py Climate routing
Components 28
React web app
- Web router
coolpath-app/src/App.jsx - Home page
coolpath-app/src/pages/Home.jsx - Dashboard
coolpath-app/src/pages/Dashboard.jsx - Heatmap
coolpath-app/src/pages/Heatmap.jsx - Tree canopy
coolpath-app/src/pages/TreeCanopy.jsx - CoolPath router
coolpath-app/src/pages/CoolPathRouter.jsx - Mobile router
coolpath-app/src/pages/MobileCoolPathRouter.jsx - Walk option
coolpath-app/src/pages/WalkOption.jsx - API hooks
coolpath-app/src/api/hooks.js - HTTP client
coolpath-app/src/api/client.js - EcoAssist chat
coolpath-app/src/components/ChatBot.jsx
Climate API and services
- REST API
streamlit-demo/backend/main.py - Climate routing
map venv/services/routing.py - Surface temperature
map venv/services/surface_temp.py - Canopy data
map venv/services/ndvi.py - Walkability analysis
map venv/services/walkability.py - Weather forecast
map venv/services/weather_forecast.py - Climate settings
map venv/config.py
Streamlit interface
- Streamlit app
streamlit-demo/app.py
3D city map
- 3D map entry
hyderabad-3d/frontend/src/main.js - 3D city map
hyderabad-3d/frontend/src/map/map3d.js - Map search
hyderabad-3d/frontend/src/ui/searchPanel.js - Map shell
hyderabad-3d/frontend/src/ui/shell.js
Messaging integrations
- Messaging page
coolpath-app/src/pages/Messaging.jsx - WhatsApp bot
whatsapp_bot/main.py - Translation
whatsapp_bot/translation_service.py - WhatsApp service
whatsapp_bot/whatsapp_service.py
Other components
- Visitor
Connections 35
- Visitor → Web router: opens
coolpath-app/src/App.jsx - Web router → Home page: routes to
coolpath-app/src/App.jsx - Web router → Dashboard: routes to
coolpath-app/src/App.jsx - Web router → Heatmap: routes to
coolpath-app/src/App.jsx - Web router → Tree canopy: routes to
coolpath-app/src/App.jsx - Web router → CoolPath router: routes to
coolpath-app/src/App.jsx - Web router → Mobile router: routes to
coolpath-app/src/App.jsx - Web router → Walk option: routes to
coolpath-app/src/App.jsx - Web router → Messaging page: routes to
coolpath-app/src/App.jsx - Web router → EcoAssist chat: renders
coolpath-app/src/App.jsx - Dashboard → API hooks: fetches data
coolpath-app/src/pages/Dashboard.jsx - Heatmap → API hooks: fetches data
coolpath-app/src/pages/Heatmap.jsx - Tree canopy → API hooks: fetches data
coolpath-app/src/pages/TreeCanopy.jsx - CoolPath router → API hooks: requests routes
coolpath-app/src/pages/CoolPathRouter.jsx - Mobile router → API hooks: requests routes
coolpath-app/src/pages/MobileCoolPathRouter.jsx - API hooks → HTTP client: calls
coolpath-app/src/api/hooks.js - API hooks → REST API: requests API
- REST API → Surface temperature: fetches raster
streamlit-demo/backend/main.py - REST API → Canopy data: fetches canopy
streamlit-demo/backend/main.py - REST API → Walkability analysis: computes grid
streamlit-demo/backend/main.py - REST API → Climate routing: computes route
streamlit-demo/backend/main.py - Climate routing → Surface temperature: samples temperatures
map venv/services/routing.py - Climate routing → Canopy data: samples canopy
map venv/services/routing.py - Surface temperature → Climate settings: reads settings
map venv/services/surface_temp.py - Canopy data → Climate settings: reads settings
map venv/services/ndvi.py - Walkability analysis → Climate settings: reads settings
map venv/services/walkability.py - Climate routing → Climate settings: reads settings
map venv/services/routing.py - Streamlit app → Climate routing: computes routes
streamlit-demo/app.py - Visitor → Streamlit app: uses
- 3D map entry → 3D city map: initializes
hyderabad-3d/frontend/src/main.js - 3D map entry → Map search: initializes
hyderabad-3d/frontend/src/main.js - 3D map entry → Map shell: initializes
hyderabad-3d/frontend/src/main.js - Map search → 3D city map: uses map
hyderabad-3d/frontend/src/ui/searchPanel.js - WhatsApp bot → Translation: uses
whatsapp_bot/main.py - WhatsApp bot → WhatsApp service: uses
whatsapp_bot/main.py