Bus static data?

Hi TfL Team,

Can you advise where the live version of the “Bus stop locations and routes” can now be downloaded from please? Our open data - Transport for London only offers examples and says you need to log in to get the ‘live feeds’ but signing in just takes me to https://api-portal.tfl.gov.uk/ and from there I can’t find them.

TIA

Simon

@SJCooper

The endpoint for Live Buses is http://countdown.api.tfl.gov.uk/interfaces/ura/stream_V1

The documentation for it is this one…

There is also CSV file of the static data here - https://tfl.gov.uk/tfl/syndication/feeds/bus-sequences.csv

(Re-write as the 1st version was a bit harsh)

Thanks for the link Brian. I was raising it as some of the legacy stuff seems to have been overlooked with the portal revamp.

Simon

the legacy stuff seems to have been overlooked with the portal revamp.

Ah yes, they do seem to have left of Trackernet and the Countdown API…

Still, it is much easier to use the new system! You can now ctrl+f to find things in the documentation.

I guess you still need to refer to Our open data - Transport for London as well?

Brian,

Yes but the problem with Our open data - Transport for London , at least as far as the stop sequence list goes. is that it tells you need to login to get the live data but once you log in, the links don’t change and it’s still only the example data. Probably telling that even after logging in, this page still offers you the ‘Sign in’ link… :frowning:

If anyone from TfL is reading this, a date stamp within the stop sequences file to show when it was last updated would be greatly appreciated! :slight_smile:

Simon

1 Like

@jamesevans @theochapple @admins any chance someone can look into this please?

Thanks.

Simon

1 Like

@jamesevans @theochapple @admins

Can this be looked at please? There was a user on another forum asking for a list of stops & bus route sequences and they were directed to register at the TfL open data site but you still can’t access this even if you do register. :frowning:

Also, the highlighted documentation link

still takes you to a page that says you need an APP_ID and APP_KEY!

Many thanks,

Simon

1 Like

SJCooper

One doesn’t need to register if you want that data, it’s here…

https://tfl.gov.uk/tfl/syndication/feeds/journey-planner-timetables.zip

In TransXChange format…

From code you could start with…

public const WHEREAMI = "https://tfl.gov.uk/tfl/syndication/feeds/journey-planner-timetables.zip";
$savefile=FileGetContentsURL::get(self::WHEREAMI)

public static function get($strURL,
                           $arrHeaders = ["Content-type: text/xml;charset=\"utf-8\"", "Accept: text/xml", "Cache-Control: no-cache", "Pragma: no-cache"],
                           $ynPost = false)
{
    $handleToCURL = self::localCurlInit($strURL);
    curl_setopt($handleToCURL, CURLOPT_TIMEOUT, 20);
    curl_setopt($handleToCURL, CURLOPT_POST, $ynPost);
    curl_setopt($handleToCURL, CURLOPT_HTTPHEADER, $arrHeaders);
    $strResponse = curl_exec($handleToCURL);
    curl_close($handleToCURL);
    return $strResponse;
}
1 Like

Brian,

I appreciate you’re trying to be helpful but I know how to use the system for what I want and need to do. What I am asking for here is TfL to fix their systems.

Simon

We’ve been asking then to do the things you ask for quite some time now. They appear to not have the resources to do these things.

Thus my answer.