Display bus routes on search box

Skip to first unread message

Alberto Trujillo González

unread,
Jan 18, 2021, 12:06:38 PM1/18/21
to TransLink Developers
Hello everyone,

Does anybody knows if the API provides a way to display a list of bus routes when typing in a search box? I'm looking for the same functionality that can be found on the "Next Bus" widget on the https://www.translink.ca/ website, but I can not find anything like that on the RTTI Open API.

Thanks in advance.

Dennis Tsang

unread,
Feb 11, 2021, 10:13:04 PM2/11/21
to TransLink Developers
It would probably be easier to grab the list of routes from the static GTFS data set and load it in your own autocomplete UI.  TransLink's GTFS data can be downoaded here: https://developer.translink.ca/servicesgtfs/gtfsdata

See routes.txt (reference documentation: https://developers.google.com/transit/gtfs/reference#routestxt )

Dennis

Alberto Trujillo González

unread,
Feb 12, 2021, 11:30:04 AM2/12/21
to TransLink Developers
Thank you so much Dennis; that's definitely a solution, I'll take a look at it.
Reply all
Reply to author
Forward
0 new messages