Bugreport GNSS Analyzer (VS Code Extension)
Analyze and visualize GNSS/GPS data extracted from an Android bugreport directly inside VS Code using an interactive Leaflet map.
Features
- Command Palette command:
Bugreport GNSS Analyzer: Generate Route Map
- Keybinding:
Ctrl+Shift+M (while focus is in an editor)
- Parses lines like:
MM-DD HH:MM:SS.mmm ... GPS_LOCATION [123456789, -1234567890]
- Renders colored route segments by minute (10-color palette)
- Adds start and end markers with timestamps
- Auto-zoom to route bounds
- Streaming parse for large files (supports 100MB+ bugreports)
Usage
- Open a bugreport
.txt file that contains GPS_LOCATION [...] entries.
- Press
Ctrl+Shift+P and run: Bugreport GNSS Analyzer: Generate Route Map (or press Ctrl+Shift+M ).
- An interactive map webview opens beside your editor.
Development
Install dependencies and build:
npm install
npm run build
Launch the extension:
- Open this folder in VS Code.
- Press
F5 to start a new Extension Development Host.
- Open a sample bugreport file and run the command.
Packaging
npm install -g @vscode/vsce
vsce package
Notes
- This is a lightweight port of the existing
draw.py script logic.
- Extend regex / parsing if more GPS formats are needed.
- No external backend services—everything runs locally.
License
Provided as-is for internal tooling / analysis purposes.
| |