How sriramadhenu/accessmapai works
AccessMap AI is a personalized accessibility-navigation product. A user opens the map dashboard, selects accessibility profiles and a destination, and receives an explainable, hazard-aware route; the dashboard also supports hazard reports, image analysis, map overlays, and spoken directions. At startup, the backend builds an enriched pedestrian graph, then serves routing and map data. Supabase supports hazards and authenticated profiles, while Gemini provides optional image analysis. The README documents several capabilities whose detailed frontend wiring was not sampled, so those links are shown only where documented or left unverified.
Main entry points: main.py FastAPI service · access-dashboard.tsx Map dashboard · enrichment.py Graph enrichment · hazards.py Hazard endpoints
Components 21
Map and accounts
- Map dashboard
frontend/components/access-dashboard.tsx - Interactive map
frontend/components/access-map/mapbox-map.tsx - API client
frontend/lib/api.ts - Auth and profiles
frontend/components/auth-provider.tsx - Profile API
frontend/app/api/profile/route.ts - Login form
frontend/app/login/login-form.tsx
Backend API
- FastAPI service
backend/main.py - Hazard endpoints
backend/api/hazards.py - Sidewalk analysis
backend/api/vision.py
Routing and data
- Graph enrichment
backend/pipeline/enrichment.py - Pedestrian graph
backend/pipeline/graph_builder.py - Elevation and slope
backend/pipeline/elevation.py - Transit feeds
backend/pipeline/gtfs.py - Environmental scoring
backend/pipeline/scoring.py - Accessibility profiles
backend/routing/profiles.py - Route engine
backend/routing/engine.py
External services
- Supabase
- Gemini
- Mapbox
- Web Speech API
Other components
- Map user
Connections 24
- Map user → Map dashboard: opens
README.md - Map dashboard → Interactive map: renders
- Map dashboard → API client: requests data
- API client → FastAPI service: calls API
- FastAPI service → Graph enrichment: boots pipeline
README.md - FastAPI service → Route engine: computes routes
backend/main.py - FastAPI service → Accessibility profiles: lists profiles
backend/main.py - FastAPI service → Hazard endpoints: routes requests
backend/main.py - FastAPI service → Sidewalk analysis: routes requests
backend/main.py - FastAPI service → Pedestrian graph: serves map data
backend/main.py - Graph enrichment → Pedestrian graph: builds graph
README.md - Graph enrichment → Elevation and slope: adds slope
README.md - Graph enrichment → Transit feeds: loads transit
README.md - Graph enrichment → Environmental scoring: adds scores
README.md - Route engine → Accessibility profiles: uses weights
backend/routing/engine.py - Hazard endpoints → Supabase: reads and writes
backend/api/hazards.py - Profile API → Supabase: stores profiles
frontend/app/api/profile/route.ts - Auth and profiles → Profile API: loads and saves
- Login form → Auth and profiles: authenticates
- Sidewalk analysis → Gemini: analyzes images
backend/api/vision.py - Interactive map → Mapbox: renders layers
- Map dashboard → Web Speech API: speaks directions
README.md - Map dashboard → Hazard endpoints: reports hazards
README.md - Map dashboard → Sidewalk analysis: uploads images
README.md