# t0biascze/gpxskitracker architecture

> Architecture diagram of the GitHub repository t0biascze/gpxskitracker, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/t0biascze/gpxskitracker
- Repository: https://github.com/t0biascze/gpxskitracker

## Overview

GpxSkiTracker is a mobile GPS activity tracker with ski-specific recording and analysis, plus logger, touring, hiking, and walking modes. The main flow is selecting a recording mode, capturing GPS and motion samples, deriving live session statistics, analyzing ski tracks into sections, and reviewing saved activities. Resort data enriches analysis and map views; Slopes integration provides account and synchronization capabilities. The excerpts show key orchestration and service calls, but not every page handler or unsampled subsystem, so those links are omitted or marked unverified.

Main entry points: [`GpxSkiTracker/ViewModels/MainViewModel.cs`](https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/ViewModels/MainViewModel.cs) (Session controller), [`GpxSkiTracker/Analysis/AnalysisService.cs`](https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/Analysis/AnalysisService.cs) (Analysis dispatcher), [`GpxSkiTracker/Resorts/ResortService.cs`](https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/Resorts/ResortService.cs) (Resort catalog), [`GpxSkiTracker/DetailPage.xaml.cs`](https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/DetailPage.xaml.cs) (Activity details)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_recording["Recording"]
  node_record_page["Record screen<br/>[RecordPage.xaml.cs]"]
  node_main_vm["Session controller<br/>[MainViewModel.cs]"]
  node_mode["Recording modes<br/>[RecordingMode.cs]"]
  node_gps_samples["GPS samples<br/>[GpsSample.cs]"]
  node_live_stats["Live statistics"]
  node_accel["Motion capture"]
end

subgraph group_analysis["Track analysis"]
  node_analysis_service["Analysis dispatcher<br/>[AnalysisService.cs]"]
  node_legacy_analyzer["Ski analyzer<br/>[SkiRunAnalyzer.cs]"]
  node_v2_analyzer["V2 analyzer"]
  node_resort_context["Resort context<br/>[ResortContext.cs]"]
  node_track_result["Track sections<br/>[SkiSection.cs]"]
end

subgraph group_resorts["Resorts and maps"]
  node_resort_service[("Resort catalog<br/>[ResortService.cs]")]
  node_resort_info["Resort details<br/>[ResortInfo.cs]"]
  node_slopes_api["Resort API<br/>[SlopesApi.cs]"]
  node_map_screen["Map screen<br/>[MapPage.xaml.cs]"]
end

subgraph group_activities["Activities"]
  node_archive_item["Archived activity"]
  node_diary_screen["Activity diary<br/>[DiaryPage.xaml.cs]"]
  node_detail_screen["Activity details<br/>[DetailPage.xaml.cs]"]
end

subgraph group_integrations["External services"]
  node_slopes_account["Slopes account<br/>[SlopesAccount.cs]"]
  node_slopes_sync["Slopes sync<br/>[SlopesSync.cs]"]
  node_slopes_client["Slopes client<br/>[SlopesClient.cs]"]
end

node_user(("Skier"))

node_user -.->|"starts recording"| node_record_page
node_record_page -.->|"controls session"| node_main_vm
node_main_vm -->|"uses mode"| node_mode
node_main_vm -->|"records fixes"| node_gps_samples
node_main_vm -->|"updates stats"| node_live_stats
node_main_vm -->|"records motion"| node_accel
node_main_vm -->|"requests analysis"| node_analysis_service
node_analysis_service -->|"dispatches legacy"| node_legacy_analyzer
node_analysis_service -->|"dispatches V2"| node_v2_analyzer
node_analysis_service -->|"finds resort"| node_resort_service
node_analysis_service -->|"builds context"| node_resort_context
node_legacy_analyzer -->|"builds sections"| node_track_result
node_analysis_service -->|"returns result"| node_track_result
node_resort_service -->|"searches resorts"| node_slopes_api
node_resort_service -->|"parses details"| node_resort_info
node_main_vm -->|"stores activities"| node_archive_item
node_detail_screen -->|"reads session"| node_main_vm
node_detail_screen -->|"requests analysis"| node_analysis_service
node_slopes_sync -->|"sends requests"| node_slopes_client
node_slopes_sync -->|"uses credentials"| node_slopes_account

click node_record_page "https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/RecordPage.xaml.cs"
click node_main_vm "https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/ViewModels/MainViewModel.cs"
click node_mode "https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/ViewModels/RecordingMode.cs"
click node_gps_samples "https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/ViewModels/GpsSample.cs"
click node_live_stats "https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/ViewModels/LiveSessionStats.cs"
click node_accel "https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/Accel/AccelerometerRecorder.cs"
click node_analysis_service "https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/Analysis/AnalysisService.cs"
click node_legacy_analyzer "https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/Analysis/Services/SkiRunAnalyzer.cs"
click node_v2_analyzer "https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/Analysis/V2/SkiRunAnalyzerV2.cs"
click node_resort_context "https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/Analysis/V2/ResortContext.cs"
click node_track_result "https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/Analysis/Models/SkiSection.cs"
click node_resort_service "https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/Resorts/ResortService.cs"
click node_resort_info "https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/Resorts/ResortInfo.cs"
click node_slopes_api "https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/Resorts/SlopesApi.cs"
click node_map_screen "https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/MapPage.xaml.cs"
click node_archive_item "https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/ViewModels/ArchivedTrackItem.cs"
click node_diary_screen "https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/DiaryPage.xaml.cs"
click node_detail_screen "https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/DetailPage.xaml.cs"
click node_slopes_account "https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/slopes/SlopesAccount.cs"
click node_slopes_sync "https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/slopes/SlopesSync.cs"
click node_slopes_client "https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/slopes/SlopesClient.cs"

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_record_page,node_main_vm,node_mode,node_gps_samples,node_live_stats,node_accel toneBlue
class node_analysis_service,node_legacy_analyzer,node_v2_analyzer,node_resort_context,node_track_result toneAmber
class node_resort_service,node_resort_info,node_slopes_api,node_map_screen toneMint
class node_archive_item,node_diary_screen,node_detail_screen toneRose
class node_slopes_account,node_slopes_sync,node_slopes_client,node_user toneIndigo
```

## Components

### Recording

- [Record screen](https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/RecordPage.xaml.cs): `GpxSkiTracker/RecordPage.xaml.cs`
- [Session controller](https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/ViewModels/MainViewModel.cs): `GpxSkiTracker/ViewModels/MainViewModel.cs`
- [Recording modes](https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/ViewModels/RecordingMode.cs): `GpxSkiTracker/ViewModels/RecordingMode.cs`
- [GPS samples](https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/ViewModels/GpsSample.cs): `GpxSkiTracker/ViewModels/GpsSample.cs`
- [Live statistics](https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/ViewModels/LiveSessionStats.cs): `GpxSkiTracker/ViewModels/LiveSessionStats.cs`
- [Motion capture](https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/Accel/AccelerometerRecorder.cs): `GpxSkiTracker/Accel/AccelerometerRecorder.cs`

### Track analysis

- [Analysis dispatcher](https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/Analysis/AnalysisService.cs): `GpxSkiTracker/Analysis/AnalysisService.cs`
- [Ski analyzer](https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/Analysis/Services/SkiRunAnalyzer.cs): `GpxSkiTracker/Analysis/Services/SkiRunAnalyzer.cs`
- [V2 analyzer](https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/Analysis/V2/SkiRunAnalyzerV2.cs): `GpxSkiTracker/Analysis/V2/SkiRunAnalyzerV2.cs`
- [Resort context](https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/Analysis/V2/ResortContext.cs): `GpxSkiTracker/Analysis/V2/ResortContext.cs`
- [Track sections](https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/Analysis/Models/SkiSection.cs): `GpxSkiTracker/Analysis/Models/SkiSection.cs`

### Resorts and maps

- [Resort catalog](https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/Resorts/ResortService.cs): `GpxSkiTracker/Resorts/ResortService.cs`
- [Resort details](https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/Resorts/ResortInfo.cs): `GpxSkiTracker/Resorts/ResortInfo.cs`
- [Resort API](https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/Resorts/SlopesApi.cs): `GpxSkiTracker/Resorts/SlopesApi.cs`
- [Map screen](https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/MapPage.xaml.cs): `GpxSkiTracker/MapPage.xaml.cs`

### Activities

- [Archived activity](https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/ViewModels/ArchivedTrackItem.cs): `GpxSkiTracker/ViewModels/ArchivedTrackItem.cs`
- [Activity diary](https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/DiaryPage.xaml.cs): `GpxSkiTracker/DiaryPage.xaml.cs`
- [Activity details](https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/DetailPage.xaml.cs): `GpxSkiTracker/DetailPage.xaml.cs`

### External services

- [Slopes account](https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/slopes/SlopesAccount.cs): `GpxSkiTracker/slopes/SlopesAccount.cs`
- [Slopes sync](https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/slopes/SlopesSync.cs): `GpxSkiTracker/slopes/SlopesSync.cs`
- [Slopes client](https://github.com/t0biascze/gpxskitracker/blob/master/GpxSkiTracker/slopes/SlopesClient.cs): `GpxSkiTracker/slopes/SlopesClient.cs`

### Other components

- **Skier**

## Connections

- Skier → Record screen: starts recording
- Record screen → Session controller: controls session (evidence: `GpxSkiTracker/RecordPage.xaml.cs`)
- Session controller → Recording modes: uses mode (evidence: `GpxSkiTracker/ViewModels/MainViewModel.cs`)
- Session controller → GPS samples: records fixes (evidence: `GpxSkiTracker/ViewModels/MainViewModel.cs`)
- Session controller → Live statistics: updates stats (evidence: `GpxSkiTracker/ViewModels/MainViewModel.cs`)
- Session controller → Motion capture: records motion (evidence: `GpxSkiTracker/ViewModels/MainViewModel.cs`)
- Session controller → Analysis dispatcher: requests analysis (evidence: `GpxSkiTracker/ViewModels/MainViewModel.cs`)
- Analysis dispatcher → Ski analyzer: dispatches legacy (evidence: `GpxSkiTracker/Analysis/AnalysisService.cs`)
- Analysis dispatcher → V2 analyzer: dispatches V2 (evidence: `GpxSkiTracker/Analysis/AnalysisService.cs`)
- Analysis dispatcher → Resort catalog: finds resort (evidence: `GpxSkiTracker/Analysis/AnalysisService.cs`)
- Analysis dispatcher → Resort context: builds context (evidence: `GpxSkiTracker/Analysis/AnalysisService.cs`)
- Ski analyzer → Track sections: builds sections (evidence: `GpxSkiTracker/Analysis/Services/SkiRunAnalyzer.cs`)
- Analysis dispatcher → Track sections: returns result (evidence: `GpxSkiTracker/Analysis/AnalysisService.cs`)
- Resort catalog → Resort API: searches resorts (evidence: `GpxSkiTracker/Resorts/ResortService.cs`)
- Resort catalog → Resort details: parses details (evidence: `GpxSkiTracker/Resorts/ResortService.cs`)
- Session controller → Archived activity: stores activities (evidence: `GpxSkiTracker/ViewModels/MainViewModel.cs`)
- Activity details → Session controller: reads session (evidence: `GpxSkiTracker/DetailPage.xaml.cs`)
- Activity details → Analysis dispatcher: requests analysis (evidence: `GpxSkiTracker/DetailPage.xaml.cs`)
- Slopes sync → Slopes client: sends requests (evidence: `GpxSkiTracker/slopes/SlopesSync.cs`)
- Slopes sync → Slopes account: uses credentials (evidence: `GpxSkiTracker/slopes/SlopesSync.cs`)
