# jasmitha0805/smart-campus-navigation-web architecture

> Architecture diagram of the GitHub repository jasmitha0805/smart-campus-navigation-web, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jasmitha0805/smart-campus-navigation-web
- Repository: https://github.com/jasmitha0805/smart-campus-navigation-web

## Overview

This is a browser-based campus wayfinding app. Users search for places or browse categories, select a location, and see a map route with step-by-step directions; separate panels provide campus information and contact details. Routing, map display, and UI behavior are implemented together in script.js, using the location catalog in data.js and Leaflet. The README also describes responsive use and an interactive map. The HTML was not sampled, so specific UI event wiring is not shown; no backend implementation is present in the supplied evidence.

Main entry points: [`smart campus/script.js`](https://github.com/jasmitha0805/smart-campus-navigation-web/blob/main/smart%20campus/script.js) (Interactive map), [`smart campus/data.js`](https://github.com/jasmitha0805/smart-campus-navigation-web/blob/main/smart%20campus/data.js) (Location catalog)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_wayfinding["Campus Wayfinding"]
  node_search["Location search<br/>[script.js]"]
  node_categories["Category browsing<br/>[script.js]"]
  node_catalog["Location catalog<br/>[data.js]"]
  node_route["Route planner<br/>[script.js]"]
  node_directions["Step directions<br/>[script.js]"]
  node_map["Interactive map<br/>[script.js]"]
end

subgraph group_content["Campus Content"]
  node_campusinfo["Campus information<br/>[script.js]"]
  node_contact["Contact panel<br/>[script.js]"]
end

subgraph group_controls["Map Controls"]
  node_reset["Map reset<br/>[script.js]"]
  node_fullscreen["Fullscreen toggle<br/>[script.js]"]
end

node_visitor(("Campus visitor"))
node_leaflet["Leaflet map library"]

node_visitor -->|"searches places"| node_search
node_visitor -->|"browses places"| node_categories
node_visitor -->|"views information"| node_campusinfo
node_visitor -->|"opens contacts"| node_contact
node_search -->|"matches locations"| node_catalog
node_categories -->|"filters locations"| node_catalog
node_search -->|"requests route"| node_route
node_categories -->|"adds markers"| node_map
node_route -->|"draws route"| node_map
node_route -->|"builds steps"| node_directions
node_map -->|"uses mapping API"| node_leaflet
node_visitor -->|"resets view"| node_reset
node_reset -->|"restores bounds"| node_map
node_visitor -->|"toggles display"| node_fullscreen

click node_search "https://github.com/jasmitha0805/smart-campus-navigation-web/blob/main/smart%20campus/script.js"
click node_categories "https://github.com/jasmitha0805/smart-campus-navigation-web/blob/main/smart%20campus/script.js"
click node_catalog "https://github.com/jasmitha0805/smart-campus-navigation-web/blob/main/smart%20campus/data.js"
click node_route "https://github.com/jasmitha0805/smart-campus-navigation-web/blob/main/smart%20campus/script.js"
click node_directions "https://github.com/jasmitha0805/smart-campus-navigation-web/blob/main/smart%20campus/script.js"
click node_map "https://github.com/jasmitha0805/smart-campus-navigation-web/blob/main/smart%20campus/script.js"
click node_campusinfo "https://github.com/jasmitha0805/smart-campus-navigation-web/blob/main/smart%20campus/script.js"
click node_contact "https://github.com/jasmitha0805/smart-campus-navigation-web/blob/main/smart%20campus/script.js"
click node_reset "https://github.com/jasmitha0805/smart-campus-navigation-web/blob/main/smart%20campus/script.js"
click node_fullscreen "https://github.com/jasmitha0805/smart-campus-navigation-web/blob/main/smart%20campus/script.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_search,node_categories,node_catalog,node_route,node_directions,node_map toneBlue
class node_campusinfo,node_contact toneAmber
class node_reset,node_fullscreen toneMint
class node_visitor,node_leaflet toneIndigo
```

## Components

### Campus Wayfinding

- [Location search](https://github.com/jasmitha0805/smart-campus-navigation-web/blob/main/smart%20campus/script.js): `smart campus/script.js`
- [Category browsing](https://github.com/jasmitha0805/smart-campus-navigation-web/blob/main/smart%20campus/script.js): `smart campus/script.js`
- [Location catalog](https://github.com/jasmitha0805/smart-campus-navigation-web/blob/main/smart%20campus/data.js): `smart campus/data.js`
- [Route planner](https://github.com/jasmitha0805/smart-campus-navigation-web/blob/main/smart%20campus/script.js): `smart campus/script.js`
- [Step directions](https://github.com/jasmitha0805/smart-campus-navigation-web/blob/main/smart%20campus/script.js): `smart campus/script.js`
- [Interactive map](https://github.com/jasmitha0805/smart-campus-navigation-web/blob/main/smart%20campus/script.js): `smart campus/script.js`

### Campus Content

- [Campus information](https://github.com/jasmitha0805/smart-campus-navigation-web/blob/main/smart%20campus/script.js): `smart campus/script.js`
- [Contact panel](https://github.com/jasmitha0805/smart-campus-navigation-web/blob/main/smart%20campus/script.js): `smart campus/script.js`

### Map Controls

- [Map reset](https://github.com/jasmitha0805/smart-campus-navigation-web/blob/main/smart%20campus/script.js): `smart campus/script.js`
- [Fullscreen toggle](https://github.com/jasmitha0805/smart-campus-navigation-web/blob/main/smart%20campus/script.js): `smart campus/script.js`

### Other components

- **Campus visitor**
- **Leaflet map library**

## Connections

- Campus visitor → Location search: searches places (evidence: `README.md`)
- Campus visitor → Category browsing: browses places (evidence: `README.md`)
- Campus visitor → Campus information: views information (evidence: `smart campus/script.js`)
- Campus visitor → Contact panel: opens contacts (evidence: `smart campus/script.js`)
- Location search → Location catalog: matches locations (evidence: `smart campus/script.js`)
- Category browsing → Location catalog: filters locations (evidence: `smart campus/script.js`)
- Location search → Route planner: requests route (evidence: `smart campus/script.js`)
- Category browsing → Interactive map: adds markers (evidence: `smart campus/script.js`)
- Route planner → Interactive map: draws route (evidence: `smart campus/script.js`)
- Route planner → Step directions: builds steps (evidence: `smart campus/script.js`)
- Interactive map → Leaflet map library: uses mapping API (evidence: `smart campus/script.js`)
- Campus visitor → Map reset: resets view (evidence: `smart campus/script.js`)
- Map reset → Interactive map: restores bounds (evidence: `smart campus/script.js`)
- Campus visitor → Fullscreen toggle: toggles display (evidence: `smart campus/script.js`)
