Add historical flight track functionality
- Store track history with position, altitude, speed, and timestamp
- Automatic track point collection every 30 seconds when position changes
- API endpoint /api/aircraft/{hex}/history for individual aircraft tracks
- Frontend "Show History" button to display historical flight paths
- Click aircraft markers to show their historical track (dashed red line)
- Track cleanup: keep last 200 points per aircraft, 24-hour retention
- Add aircraft type badges in table view with color coding
- Start/end markers for historical tracks with timestamps
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
b6a699c24b
commit
55710614da
6 changed files with 215 additions and 16 deletions
|
|
@ -30,6 +30,7 @@
|
|||
<div class="map-controls">
|
||||
<button id="center-map">Center Map</button>
|
||||
<button id="toggle-trails">Toggle Trails</button>
|
||||
<button id="toggle-history">Show History</button>
|
||||
</div>
|
||||
|
||||
<div class="legend">
|
||||
|
|
@ -73,6 +74,7 @@
|
|||
<tr>
|
||||
<th>Flight</th>
|
||||
<th>Hex</th>
|
||||
<th>Type</th>
|
||||
<th>Altitude</th>
|
||||
<th>Speed</th>
|
||||
<th>Track</th>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue