I use trains a lot when I am in the UK.
Here is a simple shortcut that finds the latest train departures from a station you specify. I have a few of these for the regular stations I use. This one is for London Victoria.
https://www.icloud.com/shortcuts/317f0b9ab34e432b976475132c23c65b
If anyone has any ideas about how to combine multiple stations together in a list for use in the Shortcut, that would be interesting to see.
All good wishes, Brian
Brian Oxley
Creator of Siri Is My Friend Blog
sylumer
November 23, 2018, 4:45pm
2
Maybe take a look at what I offered up here a couple of months back?
The National Rail site is dynamically generating the page and for me, if I try just try to grab the content of the URL in Shortcuts with a GET, then I get a submission form page structure rather than a results page.
[image]
If I do a similar thing with Scriptable using the following, I unsurprisingly get a rather similar result.
//Request the URL
let req = new Request("http://m.nationalrail.co.uk/pj/ldbboard/dep/DSY/MCV/TO");
let retHTML = await req.loadString();
//Now we'll put that output…
1 Like