Thank you for your reply.
I have found that using /Line/status without mode/bus does actually return all bus line statuses with statusSeverity = 0, i.e some sort of real time or planned disruption to the line services as follows:
“https://api.tfl.gov.uk/line/status/0”
[
{
“$type”: “Tfl.Api.Presentation.Entities.Line, Tfl.Api.Presentation.Entities”,
“id”: “102”,
“name”: “102”,
“modeName”: “bus”,
“disruptions”: [],
“created”: “2023-03-29T12:40:19.037Z”,
“modified”: “2023-03-29T12:40:19.037Z”,
“lineStatuses”: [
{
“$type”: “Tfl.Api.Presentation.Entities.LineStatus, Tfl.Api.Presentation.Entities”,
“id”: 0,
“lineId”: “102”,
“statusSeverity”: 0,
“statusSeverityDescription”: “Special Service”,
“reason”: “Proposed Changes to Routes in the Brent Cross and Cricklewood areas: We are proposing changes to bus routes 102, 189, 210, 232, 266, 316, 326 and C11 in the Brent Cross and Cricklewood area. Our aim is to adapt and develop a bus network ready to serve the new Brent Cross West rail station, the growing Brent Cross Town community and other developments around Edgware Road.”,
“created”: “0001-01-01T00:00:00”,
“validityPeriods”: [
{
“$type”: “Tfl.Api.Presentation.Entities.ValidityPeriod, Tfl.Api.Presentation.Entities”,
“fromDate”: “2023-03-08T13:26:00Z”,
“toDate”: “2023-04-17T00:29:00Z”,
“isNow”: false
}
],
“disruption”: {
“$type”: “Tfl.Api.Presentation.Entities.Disruption, Tfl.Api.Presentation.Entities”,
“category”: “PlannedWork”,
“categoryDescription”: “PlannedWork”,
“description”: “Proposed Changes to Routes in the Brent Cross and Cricklewood areas: We are proposing changes to bus routes 102, 189, 210, 232, 266, 316, 326 and C11 in the Brent Cross and Cricklewood area. Our aim is to adapt and develop a bus network ready to serve the new Brent Cross West rail station, the growing Brent Cross Town community and other developments around Edgware Road.”,
“additionalInfo”: “Find out more and <a href="https://haveyoursay.tfl.gov.uk/brent-cross-bus-changes#7\”>let us have your views",
“created”: “2023-03-08T13:26:00Z”,
“affectedRoutes”: [],
“affectedStops”: []
}
},
{
“$type”: “Tfl.Api.Presentation.Entities.LineStatus, Tfl.Api.Presentation.Entities”,
“id”: 0,
“lineId”: “102”,
** “statusSeverity”: 0,**
“statusSeverityDescription”: “Special Service”,
“reason”: “GOLDERS GREEN ROAD: Routes 102 and 226 are on diversion from Golders Green Station to Pennine Drive/Hendon Way via Finchley Road, Cricklewood Lane and Hendon Way due to roadworks. Buses are not serving the stops Hodford Road, Dunstan Road and The Vale/Hendon Way.”,
“created”: “0001-01-01T00:00:00”,
“validityPeriods”: [
{
“$type”: “Tfl.Api.Presentation.Entities.ValidityPeriod, Tfl.Api.Presentation.Entities”,
“fromDate”: “2023-03-28T15:01:00Z”,
“toDate”: “2023-04-02T09:29:00Z”,
“isNow”: true
}
],
“disruption”: {
“$type”: “Tfl.Api.Presentation.Entities.Disruption, Tfl.Api.Presentation.Entities”,
“category”: “RealTime”,
“categoryDescription”: “RealTime”,
“description”: “GOLDERS GREEN ROAD: Routes 102 and 226 are on diversion from Golders Green Station to Pennine Drive/Hendon Way via Finchley Road, Cricklewood Lane and Hendon Way due to roadworks. Buses are not serving the stops Hodford Road, Dunstan Road and The Vale/Hendon Way.”,
“created”: “2023-03-28T16:01:00Z”,
“affectedRoutes”: [],
“affectedStops”: []
}
}
],
“routeSections”: [],
“serviceTypes”: [
{
“$type”: “Tfl.Api.Presentation.Entities.LineServiceTypeInfo, Tfl.Api.Presentation.Entities”,
“name”: “Regular”,
“uri”: “/Line/Route?ids=102&serviceTypes=Regular”
}
],
“crowding”: {
“$type”: “Tfl.Api.Presentation.Entities.Crowding, Tfl.Api.Presentation.Entities”
}
},
{
“$type”: “Tfl.Api.Presentation.Entities.Line, Tfl.Api.Presentation.Entities”,
“id”: “108”,
“name”: “108”,
“modeName”: “bus”,
“disruptions”: [],
“created”: “2023-03-29T12:40:19.037Z”,
“modified”: “2023-03-29T12:40:19.037Z”,
“lineStatuses”: [
{
“$type”: “Tfl.Api.Presentation.Entities.LineStatus, Tfl.Api.Presentation.Entities”,
“id”: 0,
“lineId”: “108”,
“statusSeverity”: 0,
“statusSeverityDescription”: “Special Service”,
“reason”: “LEWISHAM HIGH STREET, SE13: Buses are on diversion from 00:01 on Saturday 01 April until 23:59 on Sunday 02 April due to a crane operation. Routes 108 273 are diverted to stand on Molesworth Street, missing the stops Lewisham Station and Connington Road in both directions.”,
“created”: “0001-01-01T00:00:00”,
“validityPeriods”: [
{
“$type”: “Tfl.Api.Presentation.Entities.ValidityPeriod, Tfl.Api.Presentation.Entities”,
“fromDate”: “2023-03-31T23:01:00Z”,
“toDate”: “2023-04-02T22:59:00Z”,
“isNow”: false
}
],
“disruption”: {
“$type”: “Tfl.Api.Presentation.Entities.Disruption, Tfl.Api.Presentation.Entities”,
“category”: “PlannedWork”,
“categoryDescription”: “PlannedWork”,
“description”: “LEWISHAM HIGH STREET, SE13: Buses are on diversion from 00:01 on Saturday 01 April until 23:59 on Sunday 02 April due to a crane operation. Routes 108 273 are diverted to stand on Molesworth Street, missing the stops Lewisham Station and Connington Road in both directions.”,
“created”: “2023-03-25T04:35:00Z”,
“affectedRoutes”: [],
“affectedStops”: []
}
},
{
“$type”: “Tfl.Api.Presentation.Entities.LineStatus, Tfl.Api.Presentation.Entities”,
“id”: 0,
“lineId”: “108”,
“statusSeverity”: 0,
“statusSeverityDescription”: “Special Service”,
“reason”: “BLACKWALL TUNNEL: From 22:00 Friday 31 March to 23:45 Sunday 02 April, route 108 is operating a split service due to footbridge installation works. Buses are operating between Stratford International Station and Canning Town Station and between Lewisham and North Greenwich Station. Use the Jubilee Line to travel between North Greenwich and Stratford.”,
“created”: “0001-01-01T00:00:00”,
“validityPeriods”: [
{
“$type”: “Tfl.Api.Presentation.Entities.ValidityPeriod, Tfl.Api.Presentation.Entities”,
“fromDate”: “2023-03-31T21:00:00Z”,
“toDate”: “2023-04-02T22:45:00Z”,
“isNow”: false
}
],
“disruption”: {
“$type”: “Tfl.Api.Presentation.Entities.Disruption, Tfl.Api.Presentation.Entities”,
“category”: “PlannedWork”,
“categoryDescription”: “PlannedWork”,
“description”: “BLACKWALL TUNNEL: From 22:00 Friday 31 March to 23:45 Sunday 02 April, route 108 is operating a split service due to footbridge installation works. Buses are operating between Stratford International Station and Canning Town Station and between Lewisham and North Greenwich Station. Use the Jubilee Line to travel between North Greenwich and Stratford.”,
“created”: “2023-03-21T06:48:00Z”,
“affectedRoutes”: [],
“affectedStops”: []
}
}
],
“routeSections”: [],
“serviceTypes”: [
{
“$type”: “Tfl.Api.Presentation.Entities.LineServiceTypeInfo, Tfl.Api.Presentation.Entities”,
“name”: “Regular”,
“uri”: “/Line/Route?ids=108&serviceTypes=Regular”
}
],
“crowding”: {
“$type”: “Tfl.Api.Presentation.Entities.Crowding, Tfl.Api.Presentation.Entities”
}
},
I can also obtain information for a particular bus line number with detailed description of each route stop affected, as follows.
“https://api.tfl.gov.uk/Line/414/Status?detail=true”
[
{
“$type”: “Tfl.Api.Presentation.Entities.Line, Tfl.Api.Presentation.Entities”,
“id”: “414”,
“name”: “414”,
“modeName”: “bus”,
“disruptions”: [],
“created”: “2023-03-02T12:25:01.97Z”,
“modified”: “2023-03-02T12:25:01.97Z”,
“lineStatuses”: [
{
“$type”: “Tfl.Api.Presentation.Entities.LineStatus, Tfl.Api.Presentation.Entities”,
“id”: 0,
“lineId”: “414”,
“statusSeverity”: 0,
“statusSeverityDescription”: “Special Service”,
“reason”: “CHELSEA v BORUSSIA DORTMUND: Routes 14 211 and 414 are on diversion in both directions between 18:30 and 23:15 on Tuesday 07 March due to a football match at Stamford Bridge. Buses are diverted via Harwood Road, King’s Road and Gunter Grove / Edith Grove, missing stops between Fulham Broadway Station and Hortensia Road.”,
“created”: “0001-01-01T00:00:00”,
“validityPeriods”: [
{
“$type”: “Tfl.Api.Presentation.Entities.ValidityPeriod, Tfl.Api.Presentation.Entities”,
“fromDate”: “2023-03-04T17:38:00Z”,
“toDate”: “2023-03-07T23:15:00Z”,
“isNow”: false
}
],
“disruption”: {
“$type”: “Tfl.Api.Presentation.Entities.Disruption, Tfl.Api.Presentation.Entities”,
“category”: “PlannedWork”,
“categoryDescription”: “PlannedWork”,
“description”: “CHELSEA v BORUSSIA DORTMUND: Routes 14 211 and 414 are on diversion in both directions between 18:30 and 23:15 on Tuesday 07 March due to a football match at Stamford Bridge. Buses are diverted via Harwood Road, King’s Road and Gunter Grove / Edith Grove, missing stops between Fulham Broadway Station and Hortensia Road.”,
“created”: “2023-02-19T18:06:00Z”,
“affectedRoutes”: [
{
“$type”: “Tfl.Api.Presentation.Entities.DisruptedRoute, Tfl.Api.Presentation.Entities”,
“id”: “826”,
“name”: “Putney Bridge Station - Marble Arch”,
“direction”: “outbound”,
“originationName”: “Putney Bridge Station”,
“destinationName”: “Marble Arch”,
“isEntireRouteSection”: true,
“routeSectionNaptanEntrySequence”: [
{
“$type”: “Tfl.Api.Presentation.Entities.RouteSectionNaptanEntrySequence, Tfl.Api.Presentation.Entities”,
“ordinal”: 0,
“stopPoint”: {
“$type”: “Tfl.Api.Presentation.Entities.StopPoint, Tfl.Api.Presentation.Entities”,
“naptanId”: “490000184Y”,
“indicator”: “Stop FB”,
“stopLetter”: “FB”,
“modes”: [],
“icsCode”: “1000184”,
“stationNaptan”: “490G00184X”,
“lines”: [],
“lineGroup”: [],
“lineModeGroups”: [],
“status”: true,
“id”: “490000184Y”,
“commonName”: “Putney Bridge Station”,
“placeType”: “StopPoint”,
“additionalProperties”: [],
“children”: [],
“lat”: 0,
“lon”: 0
}
},
{
“$type”: “Tfl.Api.Presentation.Entities.RouteSectionNaptanEntrySequence, Tfl.Api.Presentation.Entities”,
“ordinal”: 1,
“stopPoint”: {
“$type”: “Tfl.Api.Presentation.Entities.StopPoint, Tfl.Api.Presentation.Entities”,
“naptanId”: “490007051N”,
“indicator”: “Stop FJ”,
“stopLetter”: “FJ”,
“modes”: [],
“icsCode”: “1008436”,
“stationNaptan”: “490G00008436”,
“lines”: [],
“lineGroup”: [],
“lineModeGroups”: [],
“status”: true,
“id”: “490007051N”,
“commonName”: “Fulham High Street”,
“placeType”: “StopPoint”,
“additionalProperties”: [],
“children”: [],
“lat”: 0,
“lon”: 0
}
},
Conclusion
These are the results I actually wanted, leaving out mode/bus and severity=0 in the api call.
I am a little confused. If contracts provide no requirements for TFL to be notified electronically, then how is the above data provided to the TFL API?