River bus arrivals at a specific stop point

Does anyone know now how to get river bus departures from a specific stop point I’d ? I have been using the same call as normal bus stops and works fine, but nothing for river bus stops

Welcome @psellick

In theory you just first call https://api.tfl.gov.uk/Line/Meta/Modes to get your list of modes…

Then call https://api.tfl.gov.uk/line/route to get a list of routes and filter by the required mode (“river-bus”)

Then call https://api.tfl.gov.uk/line/*routeid*/arrivals - however I’m not seeing anything for https://api.tfl.gov.uk/line/RB4/arrivals right now, so perhaps it doesn’t work…

B

Thanks yes I am making those calls and the arrivals at a stop point as well nothing coming back not even and error

Let’s ping TfL’s @jamesevans and see if he can tell us. I was going to integrate them into the app I’m working on too, so I’m keen to know myself.

https://api.tfl.gov.uk/StopPoint/930GWRQ/Arrivals?mode=river-bus is the call I am making - is same as for a bus stop which works fine for bus’s just not river busses.

Also do you know how you can get railway stations in London (ie Putney station) I did read some where that it was part of TFL API but could be wrong, as Wandswoth station has an NaptonID

@jamesevans do you know what we are doing wrong for river bus’s ? and is there any documents on mainline railways inside TFL region ?

@psellick

For National Rail use the NRE “Stations.XML” free service at National Rail Enquiries -

I think RB4 is still suspended. Try RB1 instead?

@mjcarchive

Interesting, I tried 1, 2, 3 and 4 and none of them worked. Today I type in https://api.tfl.gov.uk/line/RB1/arrivals and there is the data…

@psellick

OK, trying this today…

            $stationInfo = new TflStationInfo();
            $modeName = "river-bus";
            foreach (json_decode($stationInfo->cacheTFLcall("https://api.tfl.gov.uk/line/route")) as $mode) {
                if ($mode->modeName == $modeName) {
                    $id = ($mode->id);
                    foreach (json_decode($stationInfo->cacheTFLcall("https://api.tfl.gov.uk/line/$id/arrivals")) as $arrival) {
        
                        echo PHP_EOL . "$id $arrival->naptanId $arrival->stationName ";
                    }
                }
            }

Gives me

 rb1 930GGLP Greenland Surrey Quays Pier.
 rb1 930GCAW Canary Wharf Pier.
 rb1 930GMHT Masthouse Terrace Pier.
 rb1 930GCAW Canary Wharf Pier.
 rb1 930GGNW Greenwich Pier.
 rb1 930GWMP London Eye Waterloo Pier.
 rb1 930GWMR Westminster Pier.
 rb1 930GLBR London Bridge City Pier.
 rb1 930GWAS Woolwich Royal Arsenal Pier.
 rb1 930GWRF Royal Wharf Pier
 rb1 930GMHT Masthouse Terrace Pier.
 rb1 930GMIL North Greenwich Pier.
 rb1 930GGNW Greenwich Pier.
 rb1 930GTMP Tower Pier.
 rb1 930GGLP Greenland Surrey Quays Pier.
 rb1 930GTMP Tower Pier.
 rb1 930GSWK Bankside Pier.
 rb2 930GGNW Greenwich Pier.
 rb2 930GMIL North Greenwich Pier.

RB6 is still unresponsive do we know when all the Riverbus TT will be back and working ? as quite important to my app (I am building one for our building showing local buses, trains, tubes & RB in a single page view for a reception area TV & PI with 5 inch screen & TOLIDTEK OS for an in apartment view. More an easy way to view all your local options easily

@jamesevans do you know if RB6 TT will go live again soon ?

1 Like

The TfL site says everything is running, I note River Bus status updates - Transport for London