Vehicle Arrivals Completely Wrong on Tube


#1

Hi,

When trying to get the vehicle journey for buses the response is fine but when we try the same with Tube vehicle IDs returned from the arrivals screen we get the following response:

https://api.tfl.gov.uk/Vehicle/036/Arrivals

The vehicle switches tube lines from Northern line, to district, then the next stop is northern again, then back to district. This happens for other vehicle ID’s too.

Can you let me know why this response is occurring.

[{"$type":“Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities”,“id”:“1732946076”,“operationType”:1,“vehicleId”:“036”,“naptanId”:“940GZZLUGDG”,“stationName”:“Goodge Street Underground Station”,“lineId”:“northern”,“lineName”:“Northern”,“platformName”:“Northbound - Platform 1”,“direction”:“outbound”,“bearing”:"",“destinationNaptanId”:“940GZZLUEGW”,“destinationName”:“Edgware Underground Station”,“timestamp”:“2018-07-24T06:39:09Z”,“timeToStation”:34,“currentLocation”:“At Tottenham Court Road Platform 3”,“towards”:“Edgware via CX”,“expectedArrival”:“2018-07-24T06:39:43Z”,“timeToLive”:“2018-07-24T06:39:43Z”,“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”:“2018-07-24T06:38:51.447Z”,“sent”:“2018-07-24T06:39:09Z”,“received”:“0001-01-01T00:00:00”}},{"$type":“Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities”,“id”:“1453448764”,“operationType”:1,“vehicleId”:“036”,“naptanId”:“940GZZLUEHM”,“stationName”:“East Ham Underground Station”,“lineId”:“district”,“lineName”:“District”,“platformName”:“Westbound - Platform 1”,“direction”:“inbound”,“bearing”:"",“destinationNaptanId”:“940GZZLUEBY”,“destinationName”:“Ealing Broadway Underground Station”,“timestamp”:“2018-07-24T06:39:09Z”,“timeToStation”:60,“currentLocation”:“Between Barking and East Ham”,“towards”:“Ealing Broadway”,“expectedArrival”:“2018-07-24T06:40:09Z”,“timeToLive”:“2018-07-24T06:40:09Z”,“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”:“2018-07-24T06:38:47.853Z”,“sent”:“2018-07-24T06:39:09Z”,“received”:“0001-01-01T00:00:00”}},{"$type":“Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities”,“id”:“143514021”,“operationType”:1,“vehicleId”:“036”,“naptanId”:“940GZZLUWRR”,“stationName”:“Warren Street Underground Station”,“lineId”:“northern”,“lineName”:“Northern”,“platformName”:“Northbound - Platform 1”,“direction”:“outbound”,“bearing”:"",“destinationNaptanId”:“940GZZLUEGW”,“destinationName”:“Edgware Underground Station”,“timestamp”:“2018-07-24T06:39:09Z”,“timeToStation”:124,“currentLocation”:“At Tottenham Court Road Platform 3”,“towards”:“Edgware via CX”,“expectedArrival”:“2018-07-24T06:41:13Z”,“timeToLive”:“2018-07-24T06:41:13Z”,“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”:“2018-07-24T06:38:55.338Z”,“sent”:“2018-07-24T06:39:09Z”,“received”:“0001-01-01T00:00:00”}},{"$type":“Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities”,“id”:"-1435742990",“operationType”:1,“vehicleId”:“036”,“naptanId”:“940GZZLUEUS”,“stationName”:“Euston Underground Station”,“lineId”:“northern”,“lineName”:“Northern”,“platformName”:“Northbound - Platform 1”,“direction”:“outbound”,“bearing”:"",“destinationNaptanId”:“940GZZLUEGW”,“destinationName”:“Edgware Underground Station”,“timestamp”:“2018-07-24T06:39:09Z”,“timeToStation”:213,“currentLocation”:“At Tottenham Court Road Platform 3”,“towards”:“Edgware via CX”,“expectedArrival”:“2018-07-24T06:42:42Z”,“timeToLive”:“2018-07-24T06:42:42Z”,“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”:“2018-07-24T06:38:50.838Z”,“sent”:“2018-07-24T06:39:09Z”,“received”:“0001-01-01T00:00:00”}},{"$type":“Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities”,“id”:“1547295575”,“operationType”:1,“vehicleId”:“036”,“naptanId”:“940GZZLUPLW”,“stationName”:“Plaistow Underground Station”,“lineId”:“district”,“lineName”:“District”,“platformName”:“Westbound - Platform 1”,“direction”:“inbound”,“bearing”:"",“destinationNaptanId”:“940GZZLUEBY”,“destinationName”:“Ealing Broadway Underground Station”,“timestamp”:“2018-07-24T06:39:09Z”,“timeToStation”:241,“currentLocation”:“Between Barking and East Ham”,“towards”:“Ealing Broadway”,“expectedArrival”:“2018-07-24T06:43:10Z”,“timeToLive”:“2018-07-24T06:43:10Z”,“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”:“2018-07-24T06:38:50.025Z”,“sent”:“2018-07-24T06:39:09Z”,“received”:“0001-01-01T00:00:00”}},{"$type":“Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities”,“id”:"-34306550",“operationType”:1,“vehicleId”:“036”,“naptanId”:“940GZZLUMTC”,“stationName”:“Mornington Crescent Underground Station”,“lineId”:“northern”,“lineName”:“Northern”,“platformName”:“Northbound - Platform 1”,“direction”:“outbound”,“bearing”:"",“destinationNaptanId”:“940GZZLUEGW”,“destinationName”:“Edgware Underground Station”,“timestamp”:“2018-07-24T06:39:09Z”,“timeToStation”:333,“currentLocation”:“At Tottenham Court Road Platform 3”,“towards”:“Edgware via CX”,“expectedArrival”:“2018-07-24T06:44:42Z”,“timeToLive”:“2018-07-24T06:44:42Z”,“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”:“2018-07-24T06:38:53.963Z”,“sent”:“2018-07-24T06:39:09Z”,“received”:“0001-01-01T00:00:00”}},{"$type":“Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities”,“id”:“1453448706”,“operationType”:1,“vehicleId”:“036”,“naptanId”:“940GZZLUWHM”,“stationName”:“West Ham Underground Station”,“lineId”:“district”,“lineName”:“District”,“platformName”:“Westbound - Platform 1”,“direction”:“inbound”,“bearing”:"",“destinationNaptanId”:“940GZZLUEBY”,“destinationName”:“Ealing Broadway Underground Station”,“timestamp”:“2018-07-24T06:39:09Z”,“timeToStation”:391,“currentLocation”:“Between Barking and East Ham”,“towards”:“Ealing Broadway”,“expectedArrival”:“2018-07-24T06:45:40Z”,“timeToLive”:“2018-07-24T06:45:40Z”,“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”:“2018-07-24T06:38:52.244Z”,“sent”:“2018-07-24T06:39:09Z”,“received”:“0001-01-01T00:00:00”}},{"$type":“Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities”,“id”:"-221865819",“operationType”:1,“vehicleId”:“036”,“naptanId”:“940GZZLUCTN”,“stationName”:“Camden Town Underground Station”,“lineId”:“northern”,“lineName”:“Northern”,“platformName”:“Northbound - Platform 1”,“direction”:“outbound”,“bearing”:"",“destinationNaptanId”:“940GZZLUEGW”,“destinationName”:“Edgware Underground Station”,“timestamp”:“2018-07-24T06:39:09Z”,“timeToStation”:394,“currentLocation”:“At Tottenham Court Road Platform 3”,“towards”:“Edgware via CX”,“expectedArrival”:“2018-07-24T06:45:43Z”,“timeToLive”:“2018-07-24T06:45:43Z”,“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”:“2018-07-24T06:38:48.228Z”,“sent”:“2018-07-24T06:39:09Z”,“received”:“0001-01-01T00:00:00”}},{"$type":“Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities”,“id”:“1408883182”,“operationType”:1,“vehicleId”:“036”,“naptanId”:“940GZZLUBBB”,“stationName”:“Bromley-by-Bow Underground Station”,“lineId”:“district”,“lineName”:“District”,“platformName”:“Westbound - Platform 1”,“direction”:“inbound”,“bearing”:"",“destinationNaptanId”:“940GZZLUEBY”,“destinationName”:“Ealing Broadway Underground Station”,“timestamp”:“2018-07-24T06:39:09Z”,“timeToStation”:511,“currentLocation”:“Between Barking and East Ham”,“towards”:“Ealing Broadway”,“expectedArrival”:“2018-07-24T06:47:40Z”,“timeToLive”:“2018-07-24T06:47:40Z”,“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”:“2018-07-24T06:38:46.134Z”,“sent”:“2018-07-24T06:39:09Z”,“received”:“0001-01-01T00:00:00”}},{"$type":“Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities”,“id”:“1465586746”,“operationType”:1,“vehicleId”:“036”,“naptanId”:“940GZZLUCFM”,“stationName”:“Chalk Farm Underground Station”,“lineId”:“northern”,“lineName”:“Northern”,“platformName”:“Northbound - Platform 1”,“direction”:“outbound”,“bearing”:"",“destinationNaptanId”:“940GZZLUEGW”,“destinationName”:“Edgware Underground Station”,“timestamp”:“2018-07-24T06:39:09Z”,“timeToStation”:513,“currentLocation”:“At Tottenham Court Road Platform 3”,“towards”:“Edgware via CX”,“expectedArrival”:“2018-07-24T06:47:42Z”,“timeToLive”:“2018-07-24T06:47:42Z”,“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”:“2018-07-24T06:38:48.806Z”,“sent”:“2018-07-24T06:39:09Z”,“received”:“0001-01-01T00:00:00”}},{"$type":“Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities”,“id”:"-1033425268",“operationType”:1,“vehicleId”:“036”,“naptanId”:“940GZZLUBZP”,“stationName”:“Belsize Park Underground Station”,“lineId”:“northern”,“lineName”:“Northern”,“platformName”:“Northbound - Platform 1”,“direction”:“outbound”,“bearing”:"",“destinationNaptanId”:“940GZZLUEGW”,“destinationName”:“Edgware Underground Station”,“timestamp”:“2018-07-24T06:39:09Z”,“timeToStation”:693,“currentLocation”:“At Tottenham Court Road Platform 3”,“towards”:“Edgware via CX”,“expectedArrival”:“2018-07-24T06:50:42Z”,“timeToLive”:“2018-07-24T06:50:42Z”,“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”:“2018-07-24T06:38:46.994Z”,“sent”:“2018-07-24T06:39:09Z”,“received”:“0001-01-01T00:00:00”}},{"$type":“Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities”,“id”:"-204647751",“operationType”:1,“vehicleId”:“036”,“naptanId”:“940GZZLUSGN”,“stationName”:“Stepney Green Underground Station”,“lineId”:“district”,“lineName”:“District”,“platformName”:“Westbound - Platform 1”,“direction”:“inbound”,“bearing”:"",“destinationNaptanId”:“940GZZLUEBY”,“destinationName”:“Ealing Broadway Underground Station”,“timestamp”:“2018-07-24T06:39:09Z”,“timeToStation”:811,“currentLocation”:“Between Barking and East Ham”,“towards”:“Ealing Broadway”,“expectedArrival”:“2018-07-24T06:52:40Z”,“timeToLive”:“2018-07-24T06:52:40Z”,“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”:“2018-07-24T06:38:51.166Z”,“sent”:“2018-07-24T06:39:09Z”,“received”:“0001-01-01T00:00:00”}},{"$type":“Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities”,“id”:"-1622406478",“operationType”:1,“vehicleId”:“036”,“naptanId”:“940GZZLUHTD”,“stationName”:“Hampstead Underground Station”,“lineId”:“northern”,“lineName”:“Northern”,“platformName”:“Northbound - Platform 1”,“direction”:“outbound”,“bearing”:"",“destinationNaptanId”:“940GZZLUEGW”,“destinationName”:“Edgware Underground Station”,“timestamp”:“2018-07-24T06:39:09Z”,“timeToStation”:813,“currentLocation”:“At Tottenham Court Road Platform 3”,“towards”:“Edgware via CX”,“expectedArrival”:“2018-07-24T06:52:42Z”,“timeToLive”:“2018-07-24T06:52:42Z”,“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”:“2018-07-24T06:38:51.634Z”,“sent”:“2018-07-24T06:39:09Z”,“received”:“0001-01-01T00:00:00”}},{"$type":“Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities”,“id”:"-1267651601",“operationType”:1,“vehicleId”:“036”,“naptanId”:“940GZZLUWPL”,“stationName”:“Whitechapel Underground Station”,“lineId”:“district”,“lineName”:“District”,“platformName”:“Westbound - Platform 2”,“direction”:“inbound”,“bearing”:"",“destinationNaptanId”:“940GZZLUEBY”,“destinationName”:“Ealing Broadway Underground Station”,“timestamp”:“2018-07-24T06:39:09Z”,“timeToStation”:930,“currentLocation”:“Between Barking and East Ham”,“towards”:“Ealing Broadway”,“expectedArrival”:“2018-07-24T06:54:39Z”,“timeToLive”:“2018-07-24T06:54:39Z”,“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”:“2018-07-24T06:38:52.931Z”,“sent”:“2018-07-24T06:39:09Z”,“received”:“0001-01-01T00:00:00”}},{"$type":“Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities”,“id”:“1005157336”,“operationType”:1,“vehicleId”:“036”,“naptanId”:“940GZZLUADE”,“stationName”:“Aldgate East Underground Station”,“lineId”:“district”,“lineName”:“District”,“platformName”:“Westbound - Platform 1”,“direction”:“inbound”,“bearing”:"",“destinationNaptanId”:“940GZZLUEBY”,“destinationName”:“Ealing Broadway Underground Station”,“timestamp”:“2018-07-24T06:39:09Z”,“timeToStation”:1051,“currentLocation”:“Between Barking and East Ham”,“towards”:“Ealing Broadway”,“expectedArrival”:“2018-07-24T06:56:40Z”,“timeToLive”:“2018-07-24T06:56:40Z”,“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”:“2018-07-24T06:38:44.463Z”,“sent”:“2018-07-24T06:39:09Z”,“received”:“0001-01-01T00:00:00”}},{"$type":“Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities”,“id”:"-231629991",“operationType”:1,“vehicleId”:“036”,“naptanId”:“940GZZLUGGN”,“stationName”:“Golders Green Underground Station”,“lineId”:“northern”,“lineName”:“Northern”,“platformName”:“Northbound - Platform 2”,“direction”:“outbound”,“bearing”:"",“destinationNaptanId”:“940GZZLUEGW”,“destinationName”:“Edgware Underground Station”,“timestamp”:“2018-07-24T06:39:09Z”,“timeToStation”:1054,“currentLocation”:“At Tottenham Court Road Platform 3”,“towards”:“Edgware via CX”,“expectedArrival”:“2018-07-24T06:56:43Z”,“timeToLive”:“2018-07-24T06:56:43Z”,“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”:“2018-07-24T06:38:51.369Z”,“sent”:“2018-07-24T06:39:09Z”,“received”:“0001-01-01T00:00:00”}},{"$type":“Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities”,“id”:"-123042316",“operationType”:1,“vehicleId”:“036”,“naptanId”:“940GZZLUBTX”,“stationName”:“Brent Cross Underground Station”,“lineId”:“northern”,“lineName”:“Northern”,“platformName”:“Northbound - Platform 1”,“direction”:“outbound”,“bearing”:"",“destinationNaptanId”:“940GZZLUEGW”,“destinationName”:“Edgware Underground Station”,“timestamp”:“2018-07-24T06:39:09Z”,“timeToStation”:1233,“currentLocation”:“At Tottenham Court Road Platform 3”,“towards”:“Edgware via CX”,“expectedArrival”:“2018-07-24T06:59:42Z”,“timeToLive”:“2018-07-24T06:59:42Z”,“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”:“2018-07-24T06:38:47.853Z”,“sent”:“2018-07-24T06:39:09Z”,“received”:“0001-01-01T00:00:00”}},{"$type":“Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities”,“id”:“63837446”,“operationType”:1,“vehicleId”:“036”,“naptanId”:“940GZZLUTWH”,“stationName”:“Tower Hill Underground Station”,“lineId”:“district”,“lineName”:“District”,“platformName”:“Westbound - Platform 1”,“direction”:“inbound”,“bearing”:"",“destinationNaptanId”:“940GZZLUEBY”,“destinationName”:“Ealing Broadway Underground Station”,“timestamp”:“2018-07-24T06:39:09Z”,“timeToStation”:1291,“currentLocation”:“Between Barking and East Ham”,“towards”:“Ealing Broadway”,“expectedArrival”:“2018-07-24T07:00:40Z”,“timeToLive”:“2018-07-24T07:00:40Z”,“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”:“2018-07-24T06:38:51.463Z”,“sent”:“2018-07-24T06:39:09Z”,“received”:“0001-01-01T00:00:00”}},{"$type":“Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities”,“id”:"-1241718374",“operationType”:1,“vehicleId”:“036”,“naptanId”:“940GZZLUHCL”,“stationName”:“Hendon Central Underground Station”,“lineId”:“northern”,“lineName”:“Northern”,“platformName”:“Northbound - Platform 1”,“direction”:“outbound”,“bearing”:"",“destinationNaptanId”:“940GZZLUEGW”,“destinationName”:“Edgware Underground Station”,“timestamp”:“2018-07-24T06:39:09Z”,“timeToStation”:1353,“currentLocation”:“At Tottenham Court Road Platform 3”,“towards”:“Edgware via CX”,“expectedArrival”:“2018-07-24T07:01:42Z”,“timeToLive”:“2018-07-24T07:01:42Z”,“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”:“2018-07-24T06:38:51.822Z”,“sent”:“2018-07-24T06:39:09Z”,“received”:“0001-01-01T00:00:00”}},{"$type":“Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities”,“id”:“1958820201”,“operationType”:1,“vehicleId”:“036”,“naptanId”:“940GZZLUMMT”,“stationName”:“Monument Underground Station”,“lineId”:“district”,“lineName”:“District”,“platformName”:“Westbound - Platform 1”,“direction”:“inbound”,“bearing”:"",“destinationNaptanId”:“940GZZLUEBY”,“destinationName”:“Ealing Broadway Underground Station”,“timestamp”:“2018-07-24T06:39:09Z”,“timeToStation”:1410,“currentLocation”:“Between Barking and East Ham”,“towards”:“Ealing Broadway”,“expectedArrival”:“2018-07-24T07:02:39Z”,“timeToLive”:“2018-07-24T07:02:39Z”,“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”:“2018-07-24T06:38:49.822Z”,“sent”:“2018-07-24T06:39:09Z”,“received”:“0001-01-01T00:00:00”}},{"$type":“Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities”,“id”:“1950300523”,“operationType”:1,“vehicleId”:“036”,“naptanId”:“940GZZLUCST”,“stationName”:“Cannon Street Underground Station”,“lineId”:“district”,“lineName”:“District”,“platformName”:“Westbound - Platform 1”,“direction”:“inbound”,“bearing”:"",“destinationNaptanId”:“940GZZLUEBY”,“destinationName”:“Ealing Broadway Underground Station”,“timestamp”:“2018-07-24T06:39:09Z”,“timeToStation”:1471,“currentLocation”:“Between Barking and East Ham”,“towards”:“Ealing Broadway”,“expectedArrival”:“2018-07-24T07:03:40Z”,“timeToLive”:“2018-07-24T07:03:40Z”,“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”:“2018-07-24T06:38:46.494Z”,“sent”:“2018-07-24T06:39:09Z”,“received”:“0001-01-01T00:00:00”}},{"$type":“Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities”,“id”:“64099597”,“operationType”:1,“vehicleId”:“036”,“naptanId”:“940GZZLUMSH”,“stationName”:“Mansion House Underground Station”,“lineId”:“district”,“lineName”:“District”,“platformName”:“Westbound - Platform 1”,“direction”:“inbound”,“bearing”:"",“destinationNaptanId”:“940GZZLUEBY”,“destinationName”:“Ealing Broadway Underground Station”,“timestamp”:“2018-07-24T06:39:09Z”,“timeToStation”:1590,“currentLocation”:“Between Barking and East Ham”,“towards”:“Ealing Broadway”,“expectedArrival”:“2018-07-24T07:05:39Z”,“timeToLive”:“2018-07-24T07:05:39Z”,“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”:“2018-07-24T06:38:49.619Z”,“sent”:“2018-07-24T06:39:09Z”,“received”:“0001-01-01T00:00:00”}},{"$type":“Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities”,“id”:"-1622799689",“operationType”:1,“vehicleId”:“036”,“naptanId”:“940GZZLUCND”,“stationName”:“Colindale Underground Station”,“lineId”:“northern”,“lineName”:“Northern”,“platformName”:“Northbound - Platform 1”,“direction”:“outbound”,“bearing”:"",“destinationNaptanId”:“940GZZLUEGW”,“destinationName”:“Edgware Underground Station”,“timestamp”:“2018-07-24T06:39:09Z”,“timeToStation”:1593,“currentLocation”:“At Tottenham Court Road Platform 3”,“towards”:“Edgware via CX”,“expectedArrival”:“2018-07-24T07:05:42Z”,“timeToLive”:“2018-07-24T07:05:42Z”,“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”:“2018-07-24T06:38:49.994Z”,“sent”:“2018-07-24T06:39:09Z”,“received”:“0001-01-01T00:00:00”}},{"$type":“Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities”,“id”:"-1005785486",“operationType”:1,“vehicleId”:“036”,“naptanId”:“940GZZLUBKF”,“stationName”:“Blackfriars Underground Station”,“lineId”:“district”,“lineName”:“District”,“platformName”:“Westbound - Platform 1”,“direction”:“inbound”,“bearing”:"",“destinationNaptanId”:“940GZZLUEBY”,“destinationName”:“Ealing Broadway Underground Station”,“timestamp”:“2018-07-24T06:39:09Z”,“timeToStation”:1650,“currentLocation”:“Between Barking and East Ham”,“towards”:“Ealing Broadway”,“expectedArrival”:“2018-07-24T07:06:39Z”,“timeToLive”:“2018-07-24T07:06:39Z”,“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”:“2018-07-24T06:38:45.759Z”,“sent”:“2018-07-24T06:39:09Z”,“received”:“0001-01-01T00:00:00”}},{"$type":“Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities”,“id”:"-365396619",“operationType”:1,“vehicleId”:“036”,“naptanId”:“940GZZLUBTK”,“stationName”:“Burnt Oak Underground Station”,“lineId”:“northern”,“lineName”:“Northern”,“platformName”:“Northbound - Platform 1”,“direction”:“outbound”,“bearing”:"",“destinationNaptanId”:“940GZZLUEGW”,“destinationName”:“Edgware Underground Station”,“timestamp”:“2018-07-24T06:39:09Z”,“timeToStation”:1714,“currentLocation”:“At Tottenham Court Road Platform 3”,“towards”:“Edgware via CX”,“expectedArrival”:“2018-07-24T07:07:43Z”,“timeToLive”:“2018-07-24T07:07:43Z”,“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”:“2018-07-24T06:38:48.166Z”,“sent”:“2018-07-24T06:39:09Z”,“received”:“0001-01-01T00:00:00”}},{"$type":“Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities”,“id”:"-1012734818",“operationType”:1,“vehicleId”:“036”,“naptanId”:“940GZZLUTMP”,“stationName”:“Temple Underground Station”,“lineId”:“district”,“lineName”:“District”,“platformName”:“Westbound - Platform 1”,“direction”:“inbound”,“bearing”:"",“destinationNaptanId”:“940GZZLUEBY”,“destinationName”:“Ealing Broadway Underground Station”,“timestamp”:“2018-07-24T06:39:09Z”,“timeToStation”:1771,“currentLocation”:“Between Barking and East Ham”,“towards”:“Ealing Broadway”,“expectedArrival”:“2018-07-24T07:08:40Z”,“timeToLive”:“2018-07-24T07:08:40Z”,“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”:“2018-07-24T06:38:51.306Z”,“sent”:“2018-07-24T06:39:09Z”,“received”:“0001-01-01T00:00:00”}}]


#2

Hi, can I get a reply to this? @JacobU


#3

Hello, no expert on coding and API (just learning it myself) but the 060 issue might be something related to the fact that the duty number 060 is used on both the District and Northern lines so the API feed might be fetching both back by accident? You may find a few clashes between certain London Underground lines.

The train IDs are I think as follows:
Bakerloo : 201-234
Central : 001+ I think for West Ruislip / Epping services, and 151+??? for the Hainault Loop / Ealing services
Circle: 201-216
District: 001-067 (for Ealing/Richmond/Wimbledon to Central and East London) 070-077 (Wimbledon to Edgware Road) and 121-127 (for Tower Hill peak time extras)
Hammersmith & City: 260-277
Metropolitan 401-413, 421-427, 431-466, 470-474
Northern 001+ and 151+ I think
Piccadilly I can’t remember but I know some are in the 200s and 300s series
Victoria 201-244
Waterloo & City201-203


#4

What is displayed as a ‘VehicleID’ in the TfL API for the tube is not in anyway related to the specific units or carriages operating that service, what it is returning is as Said says above, the SET ID (Running number in bus parlance).

I’m sure there’s a full list of set numbers for each line on the very useful http://districtdavesforum.co.uk/

Simon