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?
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…
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
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?