http://mocko.org.uk/pda/trains
Those unfortunate enough not to live in Brockley can show times for any other direct service by appending the correct CRS codes to the url.
For example:
- Brighton to East Croydon: http://mocko.org.uk/pda/trains/BTN/ECR
- Watford Junction to London Euston: http://mocko.org.uk/pda/trains/WFJ/EUS
Geeks: it's done using a call to National Rail's SOAP web interface. See their instructions here.
Advanced Usage - Added 2009-10-25
Return more trains - suffix the query with a number, e.g. http://mocko.org.uk/pda/trains/lbg/l
Combine results of several potential journeys. This is a bit more complex to explain. A good example is where I live - a point equidistant from Brockley and Ladywell stations. Both have trains to/from London Bridge so I'd like to search both at once and get combined results. This means I can hop on whichever train comes first. To do this specify multiple CRS codes in the from/to fields with a ':' between - for example http://mocko.org.uk/pda/trains/LBG/B
October 17 2009, 14:26:35 UTC 2 years ago
It doesn't like my BMS/STP request, but that's probably because there are no trains on that route on the weekend.
October 17 2009, 16:36:37 UTC 2 years ago
October 17 2009, 17:51:27 UTC 2 years ago
It's Orpington/Sevenoaks to St. Albans./Kentish Town. Unfortunately, it doesn't run on the weekend at all.
October 18 2009, 02:12:37 UTC 2 years ago
October 17 2009, 16:36:49 UTC 2 years ago
Warning: Invalid argument supplied for foreach() in /var/www/mocko/html/pda/TrainTimes.inc on line 14
October 17 2009, 16:37:12 UTC 2 years ago
October 17 2009, 16:38:36 UTC 2 years ago
October 17 2009, 16:39:40 UTC 2 years ago
September 29 2010, 12:54:43 UTC 1 year ago
October 17 2009, 16:58:28 UTC 2 years ago
Fixed the various modes of barfing - I simply hadn't bothered writing error handling code yet. Any weirdness with 'recently removed' CRS codes will be down to the LDBWS - I don't handle codes at all on this end.
Oblivion however, that is a feature :)
Anonymous
October 20 2009, 06:48:47 UTC 2 years ago
Finally, a killer app for the iphone
Awesome stuff, Mr H.June 22 2010, 09:43:22 UTC 1 year ago