Period figures
period_statsRetrieves period statistics for the London rail network or one line, covering watched coverage, good-service share, disruption counts, line-time lost, period comparisons, top causes and per-day bins.
Instructions
Figures for a period, for the network or one line: watched coverage, share of time with good service, unplanned and planned disruption counts, line-time disrupted, the change against the period before (when both were at least 80% watched), the most disrupted line, the longest unplanned disruption, the busiest day, the top causes, per-day (or per-week) bins and a per-line table. period names the period and gives prev and next: the end to pass for the period before or after. Unlike the other tools, times here (t0, t1, p0, starts and ends, bins, unwatched spans) are epoch seconds (UTC) as numbers; only period.first is ISO 8601.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | now (the period ends now), or a London date YYYY-MM-DD the period ends with. | now |
| line | No | Only this line; omit for the network. A line id from list_lines, such as central, elizabeth, northern, dlr or weaver. | |
| span | Yes | Length of the period: 1d, 7d, 30d, 90d or 365d. |