Tag: API


TfL Open Data: Powering the Tube Heartbeat

Our open data policy has been a key priority over the last few years, and we’re proud to be at the forefront of the open data revolution, supplying our data to over 8,500 developers who are creating important products to help keep London moving. Visualisation of our data can be particularly impressive, and there’s a great example of this with the “Tube Heartbeat.”

Tube Heartbeat image

The Tube Heartbeat visualises the volume of passengers using the Tube. It also goes right down to the platform level, the number of entrances and exits, and even the number of people aboard each tube train.

Read More


Unified API: Night Tube Data Available

The first Night Tube services launch on the Central and Victoria lines on Friday 19 August, offering a 24-hour service on Fridays and Saturdays. Services on the Jubilee, Northern and Piccadilly lines will follow in autumn. The Night Tube will be pivotal to London’s night economy, and with over 500 apps powered by our Open Data, we’re pleased to announce the addition of Night Tube data into our Unified API. 

Victoria line platforms at Warren Street

The Night Tube launches on the Central and Victoria lines on Friday 19 August – data is available in our Unified API

Read More


Prudential RideLondon route as Open Data

Prudential RideLondon is a world-class festival of cycling, and the fourth edition will take place this coming weekend – 29-31 July 2016.

We have made the route of the event available as Open Data. You can download it here, and it is free to use under our usual policy. The data in the KML file can be used by developers wishing to incorporate the different sections of the event into their maps or other applications.

For example, the route can be visualised like this, using mapbox and leaflet.js.

Screenshot 2016-07-27 16.33.22.png

The Prudential RideLondon takes place this weekend. Here is the route visualised in leaflet.js

Let us know in the comments if you feel this information is useful for you and the apps you’re developing, and please do let us know if you have any questions on this.

DesignInformationTech Partnerships

Digital Zone at the Transported by Design Festival

It was an absolute pleasure to be hosting in the Digital Zone of the Transported by Design festival yesterday (Sunday 3 July), which saw Regent Street transformed into a vehicle-free street for the day, as cars, buses and taxis were replaced by stalls, marquees and even a Tube train carriage!

Transported by Design festival

The expert speakers in the Transported by Design Digital Zone focused on how digital technology will influence the future of transport

Read More

DevelopersTech Partnerships

MasterCard Trip Hack competition – June 3-5

Part of TfL’s commitment to open data and working in collaboration with key organisations to develop innovative solutions for our customers, we’re a partner for MasterCard’s three-day Trip Hack which launches on Friday June 3. Coding takes place on Saturday and the event concludes on Sunday June 5 when the £10,000 prize will be awarded to the winning team. 


Contactless has changed the daily commute for Londoners, and Trip Hack builds on efforts to find, develop and launch new commerce applications for a generation that thinks differently about money and payments.

Read More


Unified API: Live Tram Arrivals Added

We’ve recently integrated live tram arrivals into our predictions API, and I’ve updated the information on my previous API post Unified API Part 5: AoT – Arrivals of Things to reflect this.

This means that the live trams information is available on our website and through our Unified API, as well as in the many ESUB status boards that are found in stations around London.

We have a total of 408 ESUBs on TfL Rail, Tube and DLR, as well as over 160 on National Rail and 40 on London Overground that are now showing the new trams information.

See Unified API Part 5: AoT – Arrivals of Things in the last section at the end of the post for more details.


Data City | Data Nation – Transport and Mobility Event


Join us for the launch of the London Data City | Data Nation transport and mobility challenge on Tuesday 12 April. Hosted by Digital Catapult, this event will set the scene for the challenge with industry stakeholders and keynote speakers alongside leading transport organisations.

TfL have agreed the challenges with Ford, the other partner for this event, and we’ll also be providing expert speakers and judges and offering technical support to the participants. We’ll be providing open data from our Unified API as well as the historic Traffic Data Enquiry System (TDES) data generated by SCOOT traffic sensors across London (which detect traffic flows at junctions and then optimise traffic signals every second to help keep vehicles moving).

Our TDES data hasn’t been made publicly available yet, so we’re hoping to see some great innovative solutions to some of the key transport and mobility challenges, from participants both in London and Singapore.

This event is another example of our continuing commitment to open data with over 8,000 registered users, as well as our determination to open up our data and support the developer community as much as possible to help create great products and solutions that help London keep working and growing, and make life in the city better.

Where and when

Venue: Digital Catapult Centre
101 Euston Road, London, NW1 2RA
View on Google Maps

12 April 2016 09:00 – 12:00

To register

You can register for the event here

We'll be making our Traffic Data Enquiry System data available to the participants of the challenge

We’ll be making our Traffic Data Enquiry System data available to the participants of the challenge

Read More


Run our API examples with Postman

On the development team we constantly test our own API, a task that can become very repetitive. As the Unified API is a REST API, this involves constructing, editing and sending URLs, then examining the JSON responses.

This is possible using just a browser, but can become very tedious and fiddly. There are tools available to help with this and we’ve found they give a massive boost to productivity for this kind of work.


The TfL Unified API in Postman, searching for nearby cycle docking stations.

One tool we use is Postman which streamlines the basics of working with APIs, and adds powerful features for testing, repeatability, and automation. We use it to run tests against our endpoints, and to mock up then flesh out new data feeds.
Read More