Skip to content

feat: collect and expose external category information#87

Merged
derklaro merged 2 commits intomainfrom
external-cat
Feb 24, 2026
Merged

feat: collect and expose external category information#87
derklaro merged 2 commits intomainfrom
external-cat

Conversation

@derklaro
Copy link
Copy Markdown
Member

There is a difference between the internal category (relevant for example for dispatching) and the external category (relevant for passengers). Internally, each category follows a strict pattern of 3 letters, that uniquely represent which type of train, locomotive etc. is being used. The external category does not carry such information, but tells the passenger what type of service to expect. For example, an interregio from warsaw to lodz might use the internal category "RPJ" (indicating a regional express using an EMU), while the external category is "IR", easily recognizable by passengers.

Along with this patch comes improved parsing of the train name provided by the upstream api, also allowing for better recognition of the line & label of a journey.

@github-actions
Copy link
Copy Markdown

Test Results

92 tests  +15   89 ✅ +15   45s ⏱️ +12s
18 suites + 1    3 💤 ± 0 
18 files   + 1    0 ❌ ± 0 

Results for commit 5c08dd2. ± Comparison against base commit ca6ce78.

@derklaro derklaro merged commit 6de2b37 into main Feb 24, 2026
5 checks passed
@derklaro derklaro deleted the external-cat branch February 24, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant