Update architecture documentation to reflect in-memory ICAO database
Remove outdated SQLite references and update documentation to accurately describe the current in-memory ICAO allocation database implementation with binary search lookups. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
a5e542844f
commit
65d602a6f8
1 changed files with 7 additions and 8 deletions
|
|
@ -97,14 +97,14 @@ SkyView is a high-performance, multi-source ADS-B aircraft tracking system built
|
||||||
**Purpose**: Provides comprehensive ICAO address to country mapping
|
**Purpose**: Provides comprehensive ICAO address to country mapping
|
||||||
|
|
||||||
**Key Features**:
|
**Key Features**:
|
||||||
- Embedded SQLite database with 70+ allocations covering 40+ countries
|
- In-memory database with 100+ allocations covering 70+ countries and territories
|
||||||
- Based on official ICAO Document 8585
|
- Based on official aerotransport.org ICAO allocation tables
|
||||||
- Fast range-based lookups using database indexing
|
- Fast binary search lookups on sorted allocation ranges
|
||||||
- Country names, ISO codes, and flag emojis
|
- Complete country names, ISO codes, and flag emojis
|
||||||
|
- Zero external dependencies - pure Go implementation
|
||||||
|
|
||||||
**Files**:
|
**Files**:
|
||||||
- `database.go`: SQLite database interface
|
- `database.go`: In-memory ICAO allocation database with binary search
|
||||||
- `icao.db`: Embedded SQLite database with ICAO allocations
|
|
||||||
|
|
||||||
### 5. HTTP/WebSocket Server (`internal/server/`)
|
### 5. HTTP/WebSocket Server (`internal/server/`)
|
||||||
|
|
||||||
|
|
@ -157,7 +157,7 @@ SkyView is a high-performance, multi-source ADS-B aircraft tracking system built
|
||||||
|
|
||||||
### 3. Country Lookup
|
### 3. Country Lookup
|
||||||
1. **ICAO Extraction**: Extract 24-bit ICAO address from aircraft data
|
1. **ICAO Extraction**: Extract 24-bit ICAO address from aircraft data
|
||||||
2. **Database Query**: Lookup country information in embedded SQLite database
|
2. **Database Query**: Lookup country information in in-memory database using binary search
|
||||||
3. **Data Enrichment**: Add country, country code, and flag to aircraft state
|
3. **Data Enrichment**: Add country, country code, and flag to aircraft state
|
||||||
|
|
||||||
### 4. Data Distribution
|
### 4. Data Distribution
|
||||||
|
|
@ -256,7 +256,6 @@ SkyView is a high-performance, multi-source ADS-B aircraft tracking system built
|
||||||
- **Leaflet.js**: https://leafletjs.com/ - Interactive maps
|
- **Leaflet.js**: https://leafletjs.com/ - Interactive maps
|
||||||
- **Three.js**: https://threejs.org/ - 3D visualization
|
- **Three.js**: https://threejs.org/ - 3D visualization
|
||||||
- **Chart.js**: https://www.chartjs.org/ - Statistics charts
|
- **Chart.js**: https://www.chartjs.org/ - Statistics charts
|
||||||
- **SQLite**: https://www.sqlite.org/ - ICAO country database
|
|
||||||
- **WebSocket Protocol**: RFC 6455
|
- **WebSocket Protocol**: RFC 6455
|
||||||
|
|
||||||
### ADS-B Ecosystem
|
### ADS-B Ecosystem
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue