As our city grows, so does the demand for transport. This means that it can get very busy at specific times at the most heavily used places. Some customers have told us they would like more information to help them avoid the very busiest times and places when they have the flexibility.

Today we’re releasing new London Underground data to show customer volumes and movements in stations and train occupancy for a typical weekday, so you can see the busiest locations and times on our network. This will enable open data users to create features for planning quicker and more comfortable journeys.

Crowded

With London’s population growing rapidly, demand on Tube services is higher than ever and we hope the release of this new data will help tackle crowding

Two’s a crowd

The complete datasets are now available as downloadable csv files and selected elements have been integrated into our Unified API:

  1. Station entries, exits and interchange data. The complete dataset gives passenger flow numbers within stations based on customer entries, exits and interchanges, in 15 minute increments, from the opening to the close of the service. The Unified API contains data on customer flows to platforms for entries and interchanges only.
  2. Line loading data. This dataset indicates on a scale from 1-6 (with 6 being the highest) how busy trains are likely to be as they arrive at and depart from the stations. This data is available in 15 minute increments from the opening to the close of service.

Both datasets are updated once a year based on ticket barrier taps data and survey data. You can use these datasets to identify when stations and services are at their busiest during a typical weekday, to indicate the busiest times to travel and alternative. You can find more data about our services on a typical day in the Rolling Origin and Destination Survey. (RODS)

How does it work?

The complete Crowding data sets are available here, along with detailed documentation.

Selected data elements have been integrated into in the Unified API. Read on to find out what is available.

Data on volumes of passenger flows to station platforms for entries and interchanges in 15 minute increments and line loading data is exposed via the API endpoint STOPPOINT.

STOPPOINT

The following URL can be used to provide crowding data for all the lines, and both directions for particular stop IDs:

https://api.tfl.gov.uk/StopPoint/{ids}?includeCrowdingData=true

The data structure will be the same as the existing STOPPOINT, however with the additional “Crowding” object data added to the Line Property:

Identifier[ ]
{
“$type”: “Tfl.Api.Presentation.Entities.Identifier,Tfl.Api.Presentation.Entities”,”id”: “victoria”,
“name”: “Victoria”,
“uri”: “/Line/victoria”,
“type”: “Line”
Crowding:{
Passengerflows:{
Passengerflow{
“TimeSlice”: “0015-0030”,
“value”: 2},
Passengerflow{
“TimeSlice”: “0015-0030”,
“value”: 2},
……
……
……
},
TrainLoadings:{
TrainLoading{
“Direction”: “Inbound”,
“LineDirection”: “SB”,
“NaptanFrom”: “940GZZLUEUS”,
“NaptanTo”: “940GZZLUWRR”,
“PlatformDirection”: “SB”,
“TimeSlice”: “0015-0030”,
“value”: 1},
TrainLoading{
“Direction”: “Outbound”,
“LineDirection”: “NB”,
“NaptanFrom”: “940GZZLUEUS”,
“NaptanTo”: “940GZZLUKSX”,
“PlatformDirection”: “NB”,
“TimeSlice”: “0015-0030”,
“value”: 1},
…..
……
……
}

You are also able to filter further by Line and Direction. The URL that can be used to filter is:

https://api.tfl.gov.uk/StopPoint/{ids}/Crowding/{line}?direction={direction}

An example URL would be :

https://api.tfl.gov.uk/StopPoint/940GZZLUEUS/Crowding/victoria?direction=inbound

The response from the above URL would be in the same structure as the previous URL except with a more refined data set. Below is a snippet of the UI version of the API:

 

API

Tell us what you think

We encourage the community to provide feedback on our new data sets to help us continue to enhance and improve our open data products. Please let us know your thoughts in the comments section below.

Posted by Ashiq Hussain

Full Stack Software Developer at TFL Online

3 Comments

  1. This blog is a good idea and keeping in touch with passengers is to be welcomed. A little less ‘management speak’ e.g. not so many ‘data sets’ would be welcomed too. As would remembering that are passengers not customers. Apart from that, keep up the good work.

    Like

    Reply

  2. ‘Data sets’ is not management-speak it’s the proper name for this material, for professional statisticians.

    Like

    Reply

  3. Great news. I’m researching how people find it difficult and distressing to claim a seat if they need one during busy periods (especially if they have an invisible disability). This data could be a massive help to them.

    Like

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s