@jamielola Just an update. I looked at the RealTimeTrains API and it gives the same information, but allows for less filtering of your request. For example you can’t filter to only show trains that have stopped at station X or are going through station Y. While this is something that might be of no use to the majority of users, there are bound to be some people who could make good use of this.
It’s also much easier to sign up for an account at the TransportAPI.com that at RealTimeTrains (rtt.api.io).
I’ll keep the module based on the TransportAPI unless we come up with a good reason to migrate.
{
locationDetail: {
realtimeActivated: true,
tiploc: "SURBITN",
crs: "SUR",
description: "Surbiton",
gbttBookedArrival: "1526",
gbttBookedDeparture: "1527",
origin: [
{
tiploc: "WATRLMN",
description: "London Waterloo",
workingTime: "150300",
publicTime: "1503"
}
],
destination: [
{
tiploc: "GUILDFD",
description: "Guildford",
workingTime: "160200",
publicTime: "1604"
}
],
isCall: true,
isPublicCall: true,
realtimeArrival: "1526",
realtimeArrivalActual: false,
realtimeDeparture: "1527",
realtimeDepartureActual: false,
platform: "4",
platformConfirmed: false,
platformChanged: false,
displayAs: "CALL"
},
serviceUid: "W36325",
runDate: "2017-03-29",
trainIdentity: "2G41",
runningIdentity: "2G41",
atocCode: "SW",
atocName: "South West Trains",
serviceType: "train",
isPassenger: true
},