Certain stops are returned old results from 26 December, but only if I use the app_id and app_key. Without that it returns live results. I’ve tried in a couple of browsers to check it’s not a local cacheing issue, and it matches the data my app is getting.
Here’s the url, I’ll remove the actual keys:
https://api.tfl.gov.uk/StopPoint/940GZZLUKSL/Arrivals?mode=tube&app_id=(removed)&app_key=(removed)
This returns
[
{
"$type": "Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities",
"id": "1059139851",
"operationType": 1,
"vehicleId": "222",
"naptanId": "940GZZLUKSL",
"stationName": "Kensal Green Underground Station",
"lineId": "bakerloo",
"lineName": "Bakerloo",
"platformName": "Northbound - Platform 2",
"direction": "outbound",
"bearing": "",
"destinationNaptanId": "940GZZLUHAW",
"destinationName": "Harrow & Wealdstone Underground Station",
"timestamp": "2020-12-26T10:28:48.1846152Z",
"timeToStation": 1840,
"currentLocation": "Between Elephant & Castle and Lambeth North",
"towards": "Harrow and Wealdstone",
"expectedArrival": "2020-12-26T10:59:28Z",
"timeToLive": "2020-12-26T10:59:28Z",
"modeName": "tube",
"timing": {
"$type": "Tfl.Api.Presentation.Entities.PredictionTiming, Tfl.Api.Presentation.Entities",
"countdownServerAdjustment": "00:00:00",
"source": "0001-01-01T00:00:00",
"insert": "0001-01-01T00:00:00",
"read": "2020-12-26T10:29:46.668Z",
"sent": "2020-12-26T10:28:48Z",
"received": "0001-01-01T00:00:00"
}
},
{
"$type": "Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities",
"id": "-2106697535",
"operationType": 1,
"vehicleId": "224",
"naptanId": "940GZZLUKSL",
"stationName": "Kensal Green Underground Station",
"lineId": "bakerloo",
"lineName": "Bakerloo",
"platformName": "Northbound - Platform 2",
"direction": "outbound",
"bearing": "",
"destinationNaptanId": "940GZZLUHAW",
"destinationName": "Harrow & Wealdstone Underground Station",
"timestamp": "2020-12-26T10:28:48.1846152Z",
"timeToStation": 1420,
"currentLocation": "Between Charing Cross and Piccadilly Circus",
"towards": "Harrow and Wealdstone",
"expectedArrival": "2020-12-26T10:52:28Z",
"timeToLive": "2020-12-26T10:52:28Z",
"modeName": "tube",
"timing": {
"$type": "Tfl.Api.Presentation.Entities.PredictionTiming, Tfl.Api.Presentation.Entities",
"countdownServerAdjustment": "00:00:00",
"source": "0001-01-01T00:00:00",
"insert": "0001-01-01T00:00:00",
"read": "2020-12-26T10:29:46.668Z",
"sent": "2020-12-26T10:28:48Z",
"received": "0001-01-01T00:00:00"
}
},
{
"$type": "Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities",
"id": "657977210",
"operationType": 1,
"vehicleId": "225",
"naptanId": "940GZZLUKSL",
"stationName": "Kensal Green Underground Station",
"lineId": "bakerloo",
"lineName": "Bakerloo",
"platformName": "Southbound - Platform 1",
"direction": "inbound",
"bearing": "",
"destinationNaptanId": "940GZZLUEAC",
"destinationName": "Elephant & Castle Underground Station",
"timestamp": "2020-12-26T10:28:48.1846152Z",
"timeToStation": 58,
"currentLocation": "At Platform",
"towards": "Elephant and Castle",
"expectedArrival": "2020-12-26T10:29:46Z",
"timeToLive": "2020-12-26T10:29:46Z",
"modeName": "tube",
"timing": {
"$type": "Tfl.Api.Presentation.Entities.PredictionTiming, Tfl.Api.Presentation.Entities",
"countdownServerAdjustment": "00:00:00",
"source": "0001-01-01T00:00:00",
"insert": "0001-01-01T00:00:00",
"read": "2020-12-26T10:29:46.668Z",
"sent": "2020-12-26T10:28:48Z",
"received": "0001-01-01T00:00:00"
}
},
{
"$type": "Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities",
"id": "-1705592170",
"operationType": 1,
"vehicleId": "231",
"naptanId": "940GZZLUKSL",
"stationName": "Kensal Green Underground Station",
"lineId": "bakerloo",
"lineName": "Bakerloo",
"platformName": "Southbound - Platform 1",
"direction": "inbound",
"bearing": "",
"destinationNaptanId": "940GZZLUEAC",
"destinationName": "Elephant & Castle Underground Station",
"timestamp": "2020-12-26T10:28:48.1846152Z",
"timeToStation": 700,
"currentLocation": "At Wembley Central Platform 2",
"towards": "Elephant and Castle",
"expectedArrival": "2020-12-26T10:40:28Z",
"timeToLive": "2020-12-26T10:40:28Z",
"modeName": "tube",
"timing": {
"$type": "Tfl.Api.Presentation.Entities.PredictionTiming, Tfl.Api.Presentation.Entities",
"countdownServerAdjustment": "00:00:00",
"source": "0001-01-01T00:00:00",
"insert": "0001-01-01T00:00:00",
"read": "2020-12-26T10:29:46.668Z",
"sent": "2020-12-26T10:28:48Z",
"received": "0001-01-01T00:00:00"
}
},
{
"$type": "Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities",
"id": "1552401836",
"operationType": 1,
"vehicleId": "233",
"naptanId": "940GZZLUKSL",
"stationName": "Kensal Green Underground Station",
"lineId": "bakerloo",
"lineName": "Bakerloo",
"platformName": "Northbound - Platform 2",
"direction": "outbound",
"bearing": "",
"destinationNaptanId": "940GZZLUHAW",
"destinationName": "Harrow & Wealdstone Underground Station",
"timestamp": "2020-12-26T10:28:48.1846152Z",
"timeToStation": 880,
"currentLocation": "At Edgware Road Platform 1",
"towards": "Harrow and Wealdstone",
"expectedArrival": "2020-12-26T10:43:28Z",
"timeToLive": "2020-12-26T10:43:28Z",
"modeName": "tube",
"timing": {
"$type": "Tfl.Api.Presentation.Entities.PredictionTiming, Tfl.Api.Presentation.Entities",
"countdownServerAdjustment": "00:00:00",
"source": "0001-01-01T00:00:00",
"insert": "0001-01-01T00:00:00",
"read": "2020-12-26T10:29:46.668Z",
"sent": "2020-12-26T10:28:48Z",
"received": "0001-01-01T00:00:00"
}
}
]
If I remove the keys, then I get live results. (As I write there are no trains on the Bakerloo line so its empty, but this worked earlier)
https://api.tfl.gov.uk/StopPoint/940GZZLUKSL/Arrivals?mode=tube
Is this a known issue? Is there a way to solve it?
Rob