Platform data by station

Hello

Am I missing anyway of getting platform details for tube stations from the API? I can only see it appearing under an arrival prediction, for that prediction specifically. I want to create a data set of stations and their platforms though (number and name).

Thanks!

Are you just after the platform number counts (almost all are “2”) for a specific type of StopPoint or do you want more detail?

Does this not give you what you want?

https://api.tfl.gov.uk/TrackerNet/PredictionDetailed/D/TGR

I mean this is a prediction, but it does give you all the platforms, whether there are trains around or not.

D/TGR means District line/Turnham Green - I’m not sure how to get the full list of station abbreviations :slight_smile:

Number and direction.

At the moment the best I can come up with is looping through https://api.tfl.gov.uk/Line/central/Arrivals for example and parsing the platformName field. That won’t capture them all thought because if nothing is expected then the platform won’t be listed.

@netstruggler idea of looping through all the stations via https://api.tfl.gov.uk/TrackerNet/PredictionDetailed/C/LYS will get them all but it’s another API and another data set of station codes.

:thinking:

@s230

All the codes are here…

Which goes a whole heap of three letter codes to chuck at https://api.tfl.gov.uk/TrackerNet/PredictionDetailed//

Abbey Road ABR
Acton Central ACC
Acton Town ACT ACT ACT ACT ACT ACT
Addington Village ADV
Addiscombe ADS
Aldgate ALD ALD ALD ALD ALD ALD
Aldgate East ALE ALE ALE ALE ALE ALE
All Saints ALS
Alperton ALP ALP ALP ALP ALP
Amersham AME AME AME AME AME AME
Ampere Way AMP
Anerley ANZ
Angel AGL ANG ANG ANG ANG ANG
Archway ACY ARC ARC ARC ARC ARC
Arena ARN
Arnos Grove ASG ARG ARG AGR AGR
Arsenal ASL ARS ARS ARL ARL
Avenue Road AVR
Baker Street BAS BAS BAS BAS BST BST
Balham BLM BAL BAL BAL BAL BAL
Bank BAN BAN BAN BAN BAN/MON BNK BNK
Barbican BAB BAB BAB BAB BAR BAR
Barking BKG BAG BAG BKG BAG BKGS BKG
Barkingside BAR BAR BAR BAR BDE BDE
Barons Court BAC BAC BSC BAC BCT BCT
Battersea BAT
Bayswater BAY BAY BAY BAY BAY BAY
Beckenham Junction BCJ
Beckenham Road BCR
Beckton BEC
Beckton Park BEP
Becontree BEC BEC BEC BEC BEC BEC
Beddington Lane BDL
Belgrave Walk BGW
Belsize Park BZP BLZ BEL BEP BPK BPK
Bermondsey BMY BER BER BER BER BER
Bethnal Green BEG BEG BEG BEG BNG BNG
Birkbeck BKB
Blackfriars BLA BLA BKF BLA BLF BLF
Blackhorse Lane BHL
Blackhorse Road BHO BLR BLR BLR BLR BLR BHR BHR
Blackwall BLA
Bond Street BOS BOS BOS BOS BDS BDS
Borough BOR BOR BOR BOH BOR BOR
Boston Manor BOS BOM BOM BOS BOS
Bounds Green BDS BOG BOG BGR BGR
Bow Church BOC
Bow Road BOR BOR BWR BOR BWR BWR
Brent Cross BTX BNT BRC BRC BTX BTX
Brixton BRI BRI BRI BRI BRI BRX BRX
Brockley BCY
Bromley-By-Bow BBB BBB BBB BBB BBB BBB
Brondesbury BSY
Brondesbury Park BSP
Buckhurst Hill BUH BUH BUH BUH BHL BHL
Burnt Oak BTK BTK BUO BUO BUR BUR
Bushey BSH
Caledonian Road CAL CAR CLR CRD CRD
Caledonian Road &
Barnsbury CIR
Camden Road CMD
Camden Town CTN CTN CAT CAM CTN CTN
Canada Water ZCW CWR CDW CAW CWA CWR CWR
Canary Wharf CAW CYF CRW CAW CWF CWF
Canning Town CAT CGT CAT CTO CAT CNT CNT
Cannon Street CAS CAS CST CAS CST CST
Canonbury CNN
Canons Park CPK CAP CAP CAN PRK CPK CPK
Cassiobridge CAI
Carpenders Park CPK
Centrale (Tamworth Rd) CEN/TAM
Chalfont & Latimer CAL CAL CAL CAL CLF CLF
Chalk Farm CFM CHF CHF CHF CHF CHF
Chancery Lane CHL CHL CHL CHL CYL CYL
Charing Cross CHC CHC CHC CHC CHX CHX
Chesham CHE CHE CHE CHE CHM CHM
Chigwell CHI CHI CHI CHI CHG CHG
Chiswick Park CHP CHP CWP CHP CHP CHP
Chorleywood CHO CHO CHO CHO CWD CWD
Church Street CST
Clapham Common CPC CMC CLC CLC CPC CPC
Clapham Junction CLJ
Clapham North CPN CMN CLN CLN CPN CPN
Clapham South CPS CMS CLS CLS CPS CPS
Cockfosters CKS COC COC CFS CFS
Colindale CND CDL COL COL COL COL
Colliers Wood CSD CWO COW COW CLW CLW
Coombe Lane CLN
Covent Garden CGN COG COG COV COV
Crossharbour CRO
Crouch Hill CRH
Croxley CRO CRO CRO CRO CRX CRX
Crystal Palace CYP
Custom House CUH
Cutty Sark CUS
Cyprus CYP
Dagenham East DAE DAE DGE DAE DGE DGE
Dagenham Heathway DAH DAH DGY DAH DGH DGH
Dalston Junction DLJ
Dalston Kingsland DLK
Debden DEB DEB DEB DEB DEB DEB
Deptford Bridge DEB
Devons Road DER
Dollis Hill DOH DOH DOH DOH DHL DHL
Dundonald Road DDR
Ealing Broadway EAB EAB EBY EAB EBY EBY
Ealing Common ECO ECO EAC ECO ECM ECM
Earl’s Court EAC EAC ECT EACP ECT ECT
East Acton EAA EAA EAA EAA EAC EAC
East Croydon ECR
East Finchley EFY EFN EAF EAF EFY EFY
East Ham EAH EAH EHM EAH EHM EHM
East India EAI
East Putney EAP EAP EAP EPY EPY
Eastcote EAS EAS EAS EAS ETE ETE
Edgware EGW EDG EDG EDG EDG EDG
Edgware Road
(Bakerloo) EDR EDR EDB EDR-BAK ERB ERB
Edgware Road (Circle
District H&C) EDR EDR EDR EDR-MET ERD ERD
Elephant & Castle ELC ELC ELC E+C ELE ELE
Elm Park ELP ELP EPK ELP EPK EPK
Elmers End ELM
Elverson Road ELR
Embankment EMB EMB EMB EMB EMB EMB
Epping EPP EPP EPP EPP EPP EPP
Euston EUS EUS EUS EUS EUS EUS EUS EUS
Euston Square ESQ ESQ EUQ ESQ ESQ ESQ
Fairlop FAI FAI FAI FAI FLP FLP
Farringdon FAR FAR FAR FAR FAR FAR
Fieldway FLW
Finchley Central FYC FNC FIC FIC FYC FYC
Finchley Road FIR FIR FIR FIR FRD FRD
Finchley Road &
Frognal FNY
Finsbury Park FIP FIP FIP FIP FIP FPK FPK
Forest Hill FOH
Fulham Broadway FUB FUB FBY FUB FBY FBY
Gallions Reach GAR
Gants Hill GAH GAH GAH GAH GHL GHL
George Street GST
Gloucester Road GLR GLR GTR GLRP GRD GRD
Golders Green GGN GGN GOG GOG GGR GGR
Goldhawk Road GOR GOR GOR GOR GHR GHR
Goodge Street GDG GDG GOS GOS GST GST
Gospel Oak GPO
Grange Hill GRH GRH GRH GRH GRH GRH
Gravel Hill GVH
Great Portland Street GPS GPS GPS GPS GPS GPS
Green Park GRP GRP GRP GRP GRP GPK GPK
Greenford GRE GRE GRE GRE GFD GFD
Greenwich GRE
Gunnersbury GUN GUN GUN GUN GUN GUN
Hackney Central HKC
Hackney Wick HKW
Haggerston HGG
Hainault HAI HAI HAI HAI HAI HAI
Hammersmith (Circle) HAM HAM HAS HAM-MET HMS HMS
Hammersmith (District & Piccadilly) HAM HAM HSD HAM-D+P HMD HMD
Hampstead HTD HMP HAM HMP HMP HMP
Hampstead Heath HDH
Hanger Lane HAL HAL HAL HAL HLN HLN
Harlesden HDN HSN HAR HAR
Harringay Green Lanes HRY
Harrington Road HRD
Harrow & Wealdstone HRW HAW HAW HAW HAW
Harrow-on-the-Hill HOH HOH HOH HOH HOH HOH
Hatch End HTE
Hatton Cross HNX HAC HAC HTX HTX
Headstone Lane HDL
Heathrow Airport
Terminals 1, 2 & 3 HRC HT1 HEA T123 HRC HRC
Heathrow Terminal 4 HIV HT4 HEA T4 HRF HRF
Heathrow Terminal 5 HRV HT5 HEA T5 HRV HRV
Hendon Central HCL HDC HEC HEC HND HND
Heron Quays HEQ
High Barnet HBT HBT HIB HIB HBT HBT
High Street Kensington HSK HSK HSK HSK HST HST
Highbury & Islington HHY HII HII HII H+I HII HBY HBY
Highgate HGT HGA HIG HIG HIG HIG
Hillingdon HIL HIL HIL HIL HDN HDN
Holborn HOL HOL HOL HOL HOL HOL
Holland Park HOP HOP HOP HOP HPK HPK
Holloway Road HWY HOR HLR HRD HRD
Homerton HMN
Honor Oak Park HPA
Hornchurch HOR HOR HCH HOR HCH HCH
Hounslow Central HWC HOC HOC HNC HNC
Hounslow East HWE HOE HOE HNE HNE
Hounslow West HWW HOW HOW HNW HNW
Hoxton HOX
Hyde Park Corner HPC HPC HPC HPC HPC
Ickenham ICK ICK ICK ICK ICK ICK
Imperial Wharf IMW
Island Gardens ISG
Kennington KNG KEN KEN KENN KEN KEN
Kensal Green KNL KSL KEG KGN KGN
Kensal Rise KNR
Kensington (Olympia) KPA OLY OLY KOY OLY OLY
Kentish Town KSH KTN KET KET KTN KTN
Kentish Town West KTW
Kenton KNT KNT KEN KNT KNT
Kew Gardens KWG KWG KEW KEW KEW
Kilburn KBN KIL KIL KIL KIL KIL
Kilburn High Road KBN
Kilburn Park KIP KIP KIP KIP KPK KPK
King George V KGV
King Henry’s Drive KHD
King’s Cross St.
Pancras KIC KIC KIC KIC KCS KXX KXX
Kingsbury KBY KIN KIN KIN KBY KBY
Knightsbridge KNB KNI KNB KNB
Ladbroke Grove LAD LAD LAD LAD LGR LGR
Lambeth North LAN LAN LAN LAN LAM LAM
Lancaster Gate LAG LAG LAG LAG LAN LAN
Langdon Park LAP
Latimer Road LAR LAR LAR LAR LAT LAT
Lebanon Road LEB
Leicester Square LSQ LSQ LSQ LSQ LSQ LSQ
Lewisham LEW
Leyton LEY LEY LEY LEY LEY LEY
Leyton Midland Road LEM
Leytonstone LES LES LES LES LYS LYS
Leytonstone High Road LER
Limehouse LIM
Liverpool Street LIS LIS LIS LIS LST LST
Lloyd Park LPK
London Bridge LNB LOB LOB LOB LON LON
London City Airport LCA
Loughton LOU LOU LOU LOU LTN LTN
Maida Vale MAV MAV MAV MAV MDV MDV
Manor House MRH MAH MAN MNR MNR
Mansion House MAH MAH MSH MAH MAN MAN
Marble Arch MAA MAA MAA MAA MAR MAR
Marylebone MAR MAR MAR MAR MYB MYB
Merton Park MPK
Mile End MIE MIE MIE MIE MLE MLE
Mill Hill East MHL MHE MHE MHE MHE MHE
Mitcham MTM
Mitcham Junction MTJ
Monument MON MON BAN MON BNK
Moor Park MOP MOP MOP MOP MPK MPK
Moorgate MOO MOO MOO MOO MGT MGT
Morden MDN MOR MOR MOR MOR MOR
Morden Road MRD
Mornington Crescent MTC MCS MOC MOC MCR MCR
Mudchute MUD
Neasden NDN NEA NEA NEA NEA NEA
New Addington NAD
New Cross NWX
New Cross Gate NXG
Newbury Park NEP NEP NEP NEP NEP NEP
Nine Elms NIE
North Acton NOA NOA NOA NOA NAC NAC
North Ealing NOE NOE NOE NOE NEL NEL
North Greenwich NGW NOG NOG NOG NGW NGW
North Harrow NHA NHA NOH NHA NHR NHR
North Wembley NWB NWY NOW NWM NWM
Northfields NFD NOF NOF NFD NFD
Northolt NOR NOR NOR NOR NHT NHT
Northwick Park NOP NOP NOP NOP NWP NWP
Northwood NOD NOD NOW NOD NWD NWD
Northwood Hills NOH NOH NWD NOH NWH NWH
Norwood Junction NWD
Notting Hill Gate NHG NHG NHG NHG NHG NHG
Oakwood OAK OAK OAK OAK OAK
Old Street ODS OLD OLS OLS OLD OLD
Osterley OSY OST OST OST OST
Oval OVL OVL OVA OVA OVL OVL
Oxford Circus OXC OXC OXC OXC OXC OXC OXC
Paddington PAD PAD PAC PAD-B+D PAD PAD
Paddington (Suburban) PAD PAD PAS PEDM PDS
Park Royal PKR PAR PAR PRY PRY
Parsons Green PAG PAG PSG PAG PGR PGR
Penge West PNW
Perivale PER PER PER PER PER PER
Phipps Bridge PBR
Piccadilly Circus PIC PIC PIC PIC PIC PIC
Pimlico PIM PIM PIM PIM PIM PIM PIM
Pinner PIN PIN PIN PIN PIN PIN
Plaistow PLA PLA PLW PLA PLW PLW
Pontoon Dock PDK
Poplar POP
Preston Road PRR PRR PRR PRR PRD PRD
Prince Regent PRR
Pudding Mill Lane PML
Putney Bridge PUB PUB PYB PUB PUT PUT
Queen’s Park QPW QUP QUP QUP QUP QPKS QPK
Queensbury QBY QUE QUB QUY QBY QBY
Queensway QUE QUE QUE QUE QWY QWY
Ravenscourt Park RAP RAP RVP RAP RCP RCP
Rayners Lane RAL RAL RAL RAL RLN RLN
Redbridge REB REB RED REB RED RED
Reeves Corner RVC
Regent’s Park REP REP REP REP RPK RPK
Richmond RMD RMD RIC RMD
Rickmansworth RIH RIH RIC RIH RKY RKY
Roding Valley ROV ROV ROV ROV ROD ROD
Rotherhithe ROE
Royal Albert ROA
Royal Oak ROO ROO ROO ROO ROY ROY
Royal Victoria ROV
Ruislip RUI RUI RUI RUI RUI RUI
Ruislip Gardens RUG RUG RUG RUG RUG RUG
Ruislip Manor RUM RUM RUM RUM RUM RUM
Russell Square RSQ RUS RUS RSQ RSQ
Sandilands SAN
Seven Sisters SES SES SES SES SES SVS SVS
Shadwell SDE SHA
Shepherd’s Bush SHB SHB SHB SHB-CEN SBC SBC
Shepherd’s Bush Market SBM SBM SHM SHBM SBM SBM
Shoreditch High Street SDC
Sloane Square SLS SLS SSQ SLS SSQ SSQ
Snaresbrook SNA SNA SNA SNA SNB SNB
South Acton SAT
South Ealing SOE SOE SOE SOE SEL SEL
South Hampstead SOH
South Harrow SHH SOH SOH SHR SHR
South Kensington SOK SOK SKS SOK SKN SKN
South Kenton SOK SKT SKE SKT SKT
South Quay SOQ
South Ruislip SOR SOR SOR SOR SRP SRP
South Tottenham STO
South Wimbledon SWN SWM SWI SWI SWM SWM
South Woodford SOW SOW SOW SOW SWF SWF
Southfields SOU SOU SOU SFS SFS
Southgate SGT SOU SOG SGT SGT
Southwark SWK SOU SWK SWK SWK SWK
St. James’s Park SJP SJP SJP SJP SJP SJP
St. John’s Wood SJW SJW SJW SJW SJW SJW
St. Paul’s STP STP STP STP STP STP
Stamford Brook STB STB SFB STB STB STB
Stanmore STM STA STA STA STA STA
Star Lane STL
Stepney Green STG STG SGN STG STG STG
Stockwell STO STO STO STO STO STK STK
Stonebridge Park SPB SBG STK SPK SPK
Stratford SRA STR STR STR SFD STR SFD SFD
Stratford High Street SHS
Stratford International STI
Sudbury Hill SUH SUH SUH SHL SHL
Sudbury Town SUT SUT SUT STN STN
Surrey Quays SQE
Swiss Cottage SWC SWC SWC SWC SWC SWC
Sydenham SYD
Temple TEM TEM TMP TEM TEM TEM
Therapia Lane TPL
Theydon Bois THB THB THB THB THB THB
Tooting Bec TBC TBC TOB TOB TBE TBE
Tooting Broadway TBY TBY TBR TOO TBY TBY
Tottenham Court Road TCR TCR TCR TCR TCR TCR
Tottenham Hale THA THA TOH TTH TOH TTH TTH
Totteridge & Whetstone TOT TOT TAW TAW TOT TOT
Tower Gateway TOG
Tower Hill TOH TOH TWH TOH THL THL
Tufnell Park TFP TPK TUF TUP TPK TPK
Turnham Green TUG TUG TNG TUG TGR TGR
Turnpike Lane TPN TUL TUL TPL TPL
Upminster UPM UPM UPM UPM UMP UPM
Upminster Bridge UPB UPB UPB UPB UPB UPB
Upney UPN UPN UPY UPN UPY UPY
Upper Holloway UHL
Upton Park UPP UPP UPK UPP UPK UPK
Uxbridge UXB UXB UXB UXB UXB UXB
Vauxhall VAU VAU VAU VAU VAU VUX VUX
Victoria VIC VIC VIC VIC VIC VIC VIC
Waddon Marsh WDM
Walthamstow Central WAC WAC WAL WAC WAC WAL WAL
Walthamstow Queen’s
Road WMW
Wandle Park WPK
Wanstead WAN WAN WAN WAN WAN WAN
Wanstead Park WNP
Wapping WPE
Warren Street WAS WAS WAS WAS WAS WST WST
Warwick Avenue WAA WAA WAA WAA WAR WAR
Waterloo WAT WAT WTL WAT WLO WLO
Watford WAF WAF WAT WATM WAT WAT
Watford High Street WFH
Watford Junction WFJ
Watford Vicarage Road WVR
Wellesley Road WLR
Wembley Central WMB WYC WEC WEM WEM
Wembley Park WEP WEP WEP WEP WPK WPK
West Acton WEA WEA WEA WEA WAC WAC
West Brompton WBP WEB WEB WBN WEB WBT WBT
West Croydon WCY WCR
West Finchley WFN WFY WEF WEF WFY WFY
West Ham WEH WHA WHA WHM WHA WHM WHM
West Hampstead WHD WHP WHD WEH WHD WHD
West Harrow WSH WSH WEH WSH WHR WHR
West India Quay WIQ
West Kensington WEK WEK WKN WEK WKN WKN
West Ruislip WER WER WER WER WRP WRP
West Silvertown WST
Westbourne Park WSP WSP WPA WSP WBP WBP
Westferry WES
Westminster WES WES WSM WES WMS WMS
White City WHC WHC WHC WHC WCT WCT
Whitechapel ZWL WHI WHI WHI WHI WCL WCL
Willesden Green WIG WIG WIG WIG WLG WLG
Willesden Junction WIJ WJN WIJ WLJ
Wimbledon WMB WIM WIM WIM WIM
Wimbledon Park WIP WIP WIP WMP WMP
Wood Green WOG WOG WOG WGN WGN
Wood Lane WOL WOL WLA WOL WDL WDL
Woodford WOO WOO WOO WOO WFD WFD
Woodgrange Park WGR
Woodside WDS
Woodside Park WOP WDP WOP WOP WSP WSP
Woolwich Arsenal WOA

You can always check what you find against this

@s230

I’ve uploaded the code I did to workout the platform numbers for all tube services (using @davros data)

http://demo.freeview.tv/home/show/Bakerloo

The original thread discussion for this is

Hi There,

I am experiencing the same issues. I am performing Arrival Predictions however I require all the platforms even if no prediction exists at that moment.

From what I see above there is a link https://api.tfl.gov.uk/TrackerNet/PredictionDetailed/

but I keep getting an error returned. And some of the stations have 1 or more ids. For example:

Arsenal ASL ARS ARS ARL ARL

Which Id should I use for this particular station?

Thanks in advance for your help.

Use the stations listed in http://content.tfl.gov.uk/trackernet-data-services-guide-beta.pdf - apart from the ones that are wrong. Which are listed in this thread Missing Trackernet Data (District Line) (Piccadilly Line)

Hi Briantist,

I’m still getting the below response from TrackerNet. Do I need to register or something?

Something went wrong?

Sorry for the inconvenience

Web server is returning an unknown error

There is an unknown connection issue between Cloudflare and the origin web server. As a result, the web page can not be displayed.

  • Ray ID: ************
  • Your IP address: *************
  • Error reference number: 520
  • Cloudflare Location: London

@SachinK

You need to use this URL to access TrackerNet at the moment

http://cloud.tfl.gov.uk/TrackerNet/PredictionDetailed/P/HRF

They were going to put it back to the one in the documents, but for the moment use the non-SSL one. It’s not like the data needs encryption is it?