I get the JSON reply now but need to interpret the IDs. Anyone has city ID-Value table....etc
Which IDs? you can map STANOX codes using the ATOC timetable data at data.atoc.org
I get the JSON reply now but need to interpret the IDs. Anyone has city ID-Value table....etc
Which IDs? you can map STANOX codes using the ATOC timetable data at data.atoc.org
I'm sorry, I have no clue when it comes to trains. I tried to contact support (sent them 3 e-mails already ...no reply
)
I'm sorry, I have no clue when it comes to trains. I tried to contact support (sent them 3 e-mails already ...no reply
)
train_id = 042H21MH20 (Can this be translated to a train name?)
Does anyone know if network rail or ATOC publish any files that describe the topology of the rail network - in other words, something that shows which Tiplocs are directly connected to which other Tiplocs? Something that would - say - if you had a train listed as calling at Guildford then Woking but no other information - could in principle enable a computer program to deduce that the train probably passes through Worplesdon en route?
The Rules of the Plan has this information - look at Section 2.1, Planning Geography in each regional document. I think to work it out accurately you would need to take account of the running line indications in the schedule data as well as just the TIPLOCs passed through...
Thanks Indigo2! Yes those planning geography lists look like the information I wanted regarding tiploc connectivity (albeit in a format that's going to take quite some work to parse electronically!)
although unfortunately that turned out not to be so useful for determining the stations a train passed through for Routeing Guide doubling back purposes - I don't think there is any data source anywhere that defines that precisely...
That was the conclusion I came to as well, although I'm thinking if you start recording the TD berth data, you could figure out which route a train regularly takes and going through the same berth more than once would be a double back. But then you're still left with figuring out which berths relate to which stations.
But we're a step closer.
Hello everyone,
I'm a bit confused, shouldn't data feeds provide current data why I'm I getting past times (3, 4, 5.... hours ago)?
What're you seeing that makes you think you're getting historical data?
471B63MN26, 1343309610000, 1343309580000
872L10MM26, 1343309670000, 1343309640000
505N26MM26, 1343309640000, 1343309520000
Time received feed: 13:30 BST
I've also been searching for TOC IDs and their corresponding values. I.e TOC ID 60 stands for which Train Company?
The information you have posted thus far have been very helpful thank you![]()
Those times look like they're in GMT.
I'm not actually sure there's a table of TOC IDs and codes released, but I've thrown up a list at http://wiki.openraildata.info/index.php/TOC_Codes for you
471B63MN26, 1343309610000, 1343309580000
872L10MM26, 1343309670000, 1343309640000
505N26MM26, 1343309640000, 1343309520000
Time received feed: 13:30 BST
I've also been searching for TOC IDs and their corresponding values. I.e TOC ID 60 stands for which Train Company?
The information you have posted thus far have been very helpful thank you![]()
The timestamps included in the feed are in milliseconds, whereas many conversion routines in PHP/C# etc. will expect them to be in seconds. Try dropping the last 3 zero's if you are getting errors.
Example:
Go to http://www.unixtimestamp.com/index.php and try converting the timestamps:
1343309670000 -> 10 / 15 / 37 @ 9:00:00am EST
1343309670 -> 07 / 26 / 12 @ 8:34:30am EST
http://www.epochconverter.com/ on the other hand manages to get both formats correctly:
1343309670000 -> Thu, 26 Jul 2012 13:34:30 GMT
1343309670 -> Thu, 26 Jul 2012 13:34:30 GMT
So in short, check that whatever conversion function you are using is parsing them correctly, and is also parsing them to the correct timezone.
Unless a line is reversible, you're unlikely to go through the same berth twice in a journey.
I have a table of berth steps, STANOXes and what they indicate to TRUST. Making that data available and continually updated was one of the things that came up at a meeting with NR last month.
Unless a line is reversible, you're unlikely to go through the same berth twice in a journey.
I have a table of berth steps, STANOXes and what they indicate to TRUST. Making that data available and continually updated was one of the things that came up at a meeting with NR last month.