Line statuses 'statusSeverity' field

We’re building an overview of line statuses based on the following query:
https://api-nile.tfl.gov.uk/Line/Mode/tube,dlr,overground,elizabeth-line,tram/Status
In the response, each line has one or statuses; each status has a statusSeverity field.

We learnt that we can obtain the severities for each mode through another endpoint: https://api.tfl.gov.uk/Line/Meta/Severity
When we inspect the response we see that there are, for all of the modes we’re interested in, statuses with different severities but very similar descriptions, e.g., for “dlr” we have a level 5 described as “Part Closure” and a level 11 described as “Part Closed”. Some of the statuses don’t seem applicable to whole lines, e.g., level 12 is “Exit Only”, and level 13 is “No Step Free Access”.

Inspecting https://now.tfl.gov.uk/ leads us to believe that severities greater than 10 are used with stops rather than whole lines. We looked into how https://now.tfl.gov.uk/ works, but it’s obtaining its information from its own backend, rather than directly querying the Unified API.

Our problem is that we can only visualize one status per line. We’ve monitored the line status endpoint, and it looks like only the severities 0 to 10 are in use on this endpoint. For those, we can simply show the lowest-numbered status (most severe). This is just an assumption however, and we’d like to know whether these other severities (> 10) are in use on the line status endpoint, and if so, what is their use case.

3 posts were merged into an existing topic: More information about statusSeverity