How sanath2003git/smart-college-navigation works
SmartNav is a campus wayfinding and information app. The main journey is to find a room or venue, determine the building and floor, calculate an outdoor or indoor walking route, and guide the user through building and floor transitions. The graph also preserves the documented 2D/3D map, GPS, event discovery, and administration capabilities. Several implementation links are supported only by README or source-index references; unsampled details are not expanded into asserted call flows.
Main entry points: navigationRouter.js Route planner · AppRoutes.jsx App routes · EventsPage.jsx Event discovery · eventService.js Event service
Components 20
App and maps
- App routes
frontend/src/routes/AppRoutes.jsx - Campus map
frontend/src/pages/Campus/CampusPage.jsx - 2D/3D map
frontend/src/components/map/OutdoorMap3D.jsx - Floor explorer
frontend/src/components/building/BuildingFloorExplorer.jsx - Room search
frontend/src/components/controls/SearchBar.jsx
Navigation engine
- Destination search
frontend/src/services/searchService.js - Location state
frontend/src/context/LocationContext.jsx - Navigation state
frontend/src/context/NavigationProvider.jsx - Stage transitions
frontend/src/hooks/useNavigationStage.js - Floor transitions
frontend/src/hooks/useFloorTransition.js - Route planner
frontend/src/navigation/navigationRouter.js - Route graphs
frontend/src/navigation/graphManager.js - A* pathfinding
frontend/src/navigation/astar.js - Rooms and transitions
frontend/src/services/stairService.js
Events and venues
- Event discovery
frontend/src/pages/Events/EventsPage.jsx - Event service
frontend/src/services/eventService.js - Event administration
frontend/src/pages/Admin/AdminEventsDashboard.jsx
API and campus data
- Django API
backend/api/views.py - Campus records
backend/api/models.py
Other components
- Campus visitor
Connections 18
- Campus visitor → App routes: opens app
README.md - App routes → Campus map: routes to
frontend/src/routes/AppRoutes.jsx - App routes → Event discovery: routes to
frontend/src/routes/AppRoutes.jsx - App routes → Floor explorer: routes to
frontend/src/routes/AppRoutes.jsx - Campus map → 2D/3D map: shows map
README.md - Room search → Destination search: searches
- Destination search → Floor explorer: finds destinations
- Campus visitor → Location state: shares location
README.md - Stage transitions → Route planner: requests route
frontend/src/hooks/useNavigationStage.js - Floor transitions → Route planner: requests route
frontend/src/hooks/useFloorTransition.js - Route planner → Route graphs: gets graph
frontend/src/navigation/navigationRouter.js - Route planner → A* pathfinding: computes path
frontend/src/navigation/navigationRouter.js - Route planner → Rooms and transitions: resolves rooms and stairs
frontend/src/navigation/navigationRouter.js - Event discovery → Event service: loads events
frontend/src/services/eventService.js - Event service → Django API: requests event data
frontend/src/services/eventService.js - Event administration → Event service: manages events
- Django API → Campus records: serves records
README.md - Event discovery → Campus visitor: offers venue routing
README.md