Hi,
I am very new to here, I want to ask is that, did TfL provide any bus towards (for example, 125 it should be to Winchmore Hill, not Station Road, the destination name of the route. Do anyone know any csv document that provided the bus towards.
Good point, although please note that this will give you the Towards information for bus stops, which can be different to the Towards information for bus routeswhich you’ll get from the Unified API’s route sequence data.
Just to complicate things further, this can also differ from the Destination information of an individual service.
@LeonByford Could you explain please which part of the Unified API response you are looking at for bus route Towards information. The main part of the response comprises individual blocks for every stop served by the 125. Each block starts with an entry such as:
Hi, I do apologise. You’re totally correct. I was trying to work out how we show “Towards Winchmore Hill” at the top of the route web page and thought it came from the Route Sequence response, but I realise now that is not the case!
I consulted the web site’s source code, and we actually make a request to: https://api.tfl.gov.uk/Line/Search/125?modes=bus
You’ll see “Winchmore Hill” in the vehicleDestinationText property of the inbound LineRouteSection.
Thanks for all the replies, it works absolutely fine, but I just want to ask one thing, is there anyway to query the bus route directly? Example, when I enter “2” after the search, it will pop up all the bus route including 2 in the bus route instead just finding route no.2.
The information published on our website is based on the TransXChange data (which we also publish as open data), rather than the bus-sequences.csv file. Therefore that information isn’t available on the website, sorry!