Commit d363cdc0 authored by Volker Krause's avatar Volker Krause
Browse files

Add even more remark filter for SBB

This produces sensible journey and departure responses now, if the backend
doesn't respond with an error.

Some of those contain wrapped XML and JSON content, one of those is the
vehicle layout. We still need to find a way how to expose that from here.
parent 4bfec8a2
Pipeline #48406 canceled with stage
......@@ -60,8 +60,13 @@ static const struct {
{ "A", "OPERATOR" }, // operator information should be a dedicated field if we ever need it
{ "H", "wagenstand_v2" }, // contains a pointless note about checking trip details
{ "I", "FD" }, // SBB line number?
{ "I", "JF" }, // SBB: JSON structure containing the coach layout - TODO how can we expose that via our vehicle layout API?
{ "I", "RN" }, // SBB: some unknown number for buses
{ "I", "TC" }, // SBB: some unknown number for buses
{ "I", "XC" }, // SBB: some XML structure of unknown content
{ "I", "XG" }, // SBB: some XML structure of unknown content
{ "I", "XP" }, // SBB: some XML structure of unknown content
{ "I", "XT" }, // SBB: some XML structure of unknown content
};
static std::vector<Message> parseRemarks(const QJsonArray &remL)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment