Journey planner question

Hello,

I’m currently using the journey planner API to fetch the routes from point A to point B. I was wondering whether you could give suggestions on how I can:

  1. Get details around the best carriage and station exits for interchange (i.e Citymapper’s ‘best section’)

  2. What’s the best way to get the direction of the tube (i.e westbound, eastbound etc…)

Thanks again!

@Lausal

Get details around the best carriage and station exits for interchange (i.e Citymapper’s ‘best section’)

You can get the data from the British Library from the old Cleaver Tube Hopper Guide.

Or, my photos of it

I do have a dataset for the Overground stations too.

What’s the best way to get the direction of the tube (i.e westbound, eastbound etc…)

The most “Official” way it to refer to the data in the Working Timetables.

However, it’s often bunk. Famously, Kings Cross to Euston is southbound on the Victoria Line and northbound on the Northern.

Another example is that the whole of the Central line “east” from Stratford is actually north.

Overrgound data for interchanges

"ACC","Acton Central","mid","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"ANZ","Anerley","front","mid",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"BCV","Bruce Grove","mid","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"BCY","Brockley","front","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"BET","Bethnal Green","back","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"BHK","Bush Hill Park","mid","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"BHO","Blackhorse Road","mid","mid",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"BSH","Bushey","back","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"BSP","Brondesbury Park","back","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"BSY","Brondesbury","front","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"CBH","Cambridge Heath","mid","mid",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"CHI","Chingford","rear","back","rear",NULL,NULL,NULL,NULL,NULL,NULL
"CIR","Caledonian Road & Barnsbury",NULL,"mid","mid",NULL,NULL,NULL,NULL,NULL,NULL
"CLJ","Clapham Junction","front","rear",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"CLP","Clapham High Street","mid","mid",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"CMD","Camden Road","mid","mid",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"CNN","Canonbury","mid","mid","mid","mid",NULL,NULL,NULL,NULL,NULL
"CPK","Carpenders Park","mid","mid",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"CPT","Clapton","front","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"CRH","Crouch Hill","front","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"CYP","Crystal Palace",NULL,NULL,"rear","rear","rear","rear",NULL,NULL,NULL
"DLJ","Dalston Junction","ahead","rear","rear","rear",NULL,NULL,NULL,NULL,NULL
"DLK","Dalston (Kingsland)","back","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"DMK","Denmark Hill","front","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"EDR","Edmonton Green","mid","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"EMP","Emerson Park","mid",NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
"ENF","Enfield Town","back","back","back",NULL,NULL,NULL,NULL,NULL,NULL
"EUS","Euston",NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,"rear"
"FNY","Finchley Road & Frognal","mid","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"FOH","Forest Hill","mid","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"GPO","Gospel Oak","back","front","rear",NULL,NULL,NULL,NULL,NULL,NULL
"GUN","Gunnersbury","back","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"HAC","Hackney Downs","front","back","front","back",NULL,NULL,NULL,NULL,NULL
"HDH","Hampstead Heath","mid","mid",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"HDL","Headstone Lane","back","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"HDN","Harlesden","front","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"HGG","Haggerston","mid","mid",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"HHY","Highbury and Islington","front","front",NULL,NULL,NULL,NULL,"back","front",NULL
"HIP","Highams Park","front","mid",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"HKC","Hackney Central","mid","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"HKW","Hackney Wick","mid","mid",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"HMN","Homerton","ahead","rear",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"HOX","Hoxton","back","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"HPA","Honor Oak Park","back","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"HRW","Harrow and Wealdstone","mid","mid",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"HRY","Harringay Green Lanes","mid","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"HTE","Hatch End","mid","mid",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"IMW","Imperial Wharf","front","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"KBN","Kilburn High Road","back","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"KNL","Kensal Green","front","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"KNR","Kensal Rise","mid","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"KNT","Kenton","back","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"KPA","Kensington Olympia",NULL,"mid","mid",NULL,NULL,NULL,NULL,NULL,NULL
"KTW","Kentish Town West","back","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"KWG","Kew Gardens","back","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"LEM","Leyton Midland Road","front","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"LER","Leytonstone High Road","back","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"LOF","London Fields","mid","mid",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"LST","Liverpool Street","rear","rear","rear",NULL,NULL,NULL,NULL,NULL,NULL
"NWB","North Wembley","back","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"NWD","Norwood Junction","mid",NULL,"mid",NULL,"mid","mid",NULL,NULL,NULL
"NXG","New Cross Gate","mid",NULL,NULL,NULL,"back",NULL,NULL,NULL,NULL
"PMR","Peckham Rye","back","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"PNW","Penge West","mid","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"QPW","Queen's Park","front",NULL,NULL,"back",NULL,NULL,NULL,NULL,NULL
"QRP","Queen's Road Peckham","mid","mid",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"REC","Rectory Road","front","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"ROE","Rotherhithe","front","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"SAT","South Acton","mid","mid",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"SBP","Stonebridge Park","mid","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"SBU","Southbury","back","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"SDC","Shoreditch High Street","front","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"SDE","Shadwell","back","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"SJS","St James Street","front","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"SKW","Stoke Newington","back","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"SLV","Silver Street","front","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"SMH","Stamford Hill","front","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"SOH","South Hampstead","back","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"SOK","South Kenton","back","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"SPB","Shepherds Bush","mid","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"SQE","Surrey Quays","front","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"SRA","Stratford","mid","mid",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"STO","South Tottenham","front","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"SVS","Seven Sisters","back","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"SYD","Sydenham","mid","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"TEO","Theobalds Grove","back","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"TUR","Turkey Street","front","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"UHL","Upper Holloway","back","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"WBP","West Brompton",NULL,NULL,"mid","front",NULL,NULL,NULL,NULL,NULL
"WCY","West Croydon","back",NULL,"back","back",NULL,NULL,NULL,NULL,NULL
"WFH","Watford High Street","back","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"WFJ","Watford Junction","rear","rear","rear","rear",NULL,NULL,NULL,NULL,NULL
"WGR","Woodgrange Park","front","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"WHC","Walthamstow Central","mid","mid",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"WHD","West Hampstead","mid","mid",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"WHL","White Hart Lane","back","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"WIJ","Willesden Junction","front",NULL,"back","front","back",NULL,NULL,NULL,NULL
"WMB","Wembley Central","front","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"WMW","Walthamstow Queens Road","mid","mid",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"WNP","Wanstead Park","front","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"WPE","Wapping","back","front",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"WST","Wood Street","front","back",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"WWR","Wandsworth Road","mid","mid",NULL,NULL,NULL,NULL,NULL,NULL,NULL
"ZCW","Canada Water",NULL,NULL,"mid","front",NULL,NULL,NULL,NULL,NULL
"ZLW","Whitechapel",NULL,NULL,NULL,NULL,"mid","mid",NULL,NULL,NULL

@Lausal

You might also find this useful - Which side the doors open...unifiedAPI?