How dheerajrai-dev/spectramap works
SpectraMap turns cellular-tower records into a spatial interference graph, colors that graph with heuristic and exact solvers, and presents allocations and diagnostics in an interactive map workspace. The main flow is tower retrieval, graph construction, optimization and validation, then visualization and inspection. The README documents additional analytics, comparison, bounds checks, and offline-demo capabilities. Some frontend-to-API wiring and unsampled feature details are not visible in the excerpts, so those relationships are omitted or marked unverified.
Main entry points: app.py REST API · app.js Interactive Workspace · data_service.py Tower Ingestion · graph_engine.py DSatur Solver
Components 17
User Workspace
- Interactive Workspace
static/app.js - Map and Graph Views
static/app.js - Tower Inspector
static/app.js
API and Data
- REST API
app.py - Tower Ingestion
data_service.py - Local Query Cache
Graph Allocation
- Interference Graph Builder
graph_engine.py - Graph Diagnostics
graph_engine.py - DSatur Solver
graph_engine.py - Welsh-Powell Solver
graph_engine.py - Exact Solver
graph_engine.py - Coloring Validator
graph_engine.py - Allocation Results
app.py
Data Contracts
- Request and Response Models
schemas.py
Other components
- Workspace User
- OpenCellID
- OpenStreetMap Tiles
Connections 21
- Workspace User → Interactive Workspace: uses
README.md - Interactive Workspace → REST API: requests data
- REST API → Request and Response Models: validates requests
app.py - REST API → Tower Ingestion: fetches records
app.py - Tower Ingestion → OpenCellID: queries
data_service.py - Tower Ingestion → Local Query Cache: reads and writes
README.md - REST API → Interference Graph Builder: builds graph
app.py - REST API → DSatur Solver: runs solver
app.py - REST API → Welsh-Powell Solver: runs solver
app.py - REST API → Exact Solver: supports exact solve
README.md - REST API → Graph Diagnostics: returns diagnostics
app.py - REST API → Coloring Validator: returns validation
app.py - Interference Graph Builder → Graph Diagnostics: measures
graph_engine.py - DSatur Solver → Coloring Validator: validates coloring
graph_engine.py - Welsh-Powell Solver → Coloring Validator: validates coloring
graph_engine.py - Exact Solver → DSatur Solver: falls back to
graph_engine.py - REST API → Allocation Results: returns allocations
app.py - Allocation Results → Map and Graph Views: renders results
README.md - Interactive Workspace → Tower Inspector: opens details
static/app.js - Interactive Workspace → Map and Graph Views: switches views
static/app.js - Map and Graph Views → OpenStreetMap Tiles: displays tiles
README.md