Jouney Planner with fares

Hi,
I’m making a journey planner app that allows users to enter two locations, run it thorugh google maps api to get logitude and latitude to feed into the tfl journey planner api to find the journey. But I have been trying to use an api to calculate the fares required for the journey presented. Is there a way to do it?

Thank you for your time

Welcome @Autumn

On TfL you can use the “single fare finder” - Single fare finder - Transport for London and there is NRE Darwin endpoint for calculating the possible fares for train trips.

However the current fare structures within the UK are bizarre and complicated.

Can you explain what you might be trying to do?

The TfL endpoint should be returning fares to you…

APIs: Details - Transport for London - API show you can get the pricing back.

I just want tom use the an api to get the total cost of a journey. I have use the basic api call and it did not return the total cost and I’m wondering how to use tfl-28 to get the total cost

Thank you

@Autumn

It’s all in Journey planner (/Journey/JourneyResults/{from}/to/{to}) not returning fares and zone information

The single fare finder is done by, for example, https://api.tfl.gov.uk/Stoppoint/940GZZLUCHX/FareTo/940GZZLUBST

Hi, @Autumn, and welcome to the forum!

Unfortunately, we’ve had to temporarily turn off Journey Planner’s ability to return fares whilst we fix some issues with the data. We’re urgently working to resolve this and hope to restore this feature soon.

@briantist Hi, I’m also researching London fares for my project.

To clarify, is it correct that if I use the TFL static data in TXC format, the only way to obtain fares data is through the TFL API endpoint /StopPoint/<stop_id>/FareTo/<stop_id>? It seems this endpoint only supports the tube, rail, and similar modes. Are there any data sources available for bus routes?

I am exploring the possibility of creating something akin to the GTFS fares v2 extension for London routes. Do you have any recommendations?

@john_wr

£1.75 for any number of bus trips within the hour, daily cap (to 04:30 each day) of £5.25 and Weekly cap (Monday to Sunday) of £24.70

see

people can buy longer Oyster-based pre-payments of

Monthly Bus £94.90 (“3.9 weeks”) or Annual Bus & Tram Pass for £988 (“40 weeks”)

Hello everyone. Just a heads-up that we re-enabled the fares functionality in Journey Planner today.

3 Likes