Skip to ContentGalway Bus API Docs

Route Timetable

Get route timetable.

Route Timetable Schema

Route Timetable Schema
NameTypeDescriptionFrom GTFS .txt file
trip_idstringThe trip idno
offset_detsobjectOffset details or empty objectno
stop_timesarrayArray of GStopTimesno

Get Route Timetable

Params

uri parameters
NameRequiredDescription
routetrueAccepts long or short
directiontrueEither '1' or '0'

Request

/api/routetimetable/401/0

Response

{
"results": {
"trips": [
{
"trip_id": "3682198.20.10-404-e19-1.1547.O",
"offset_dets": {
"first_stop_id": "8460B5243701",
"first_stop_name": "Eyre Square, stop 524371",
"last_stop_id": "8460B5255401",
"last_stop_name": "Westside Centre, stop 525541",
"first_stop_offset": 14,
"last_stop_offset": 0
},
"stop_times": [
{
"arrival_time": "06:15:00",
"departure_time": "06:15:00",
"stop_id": "8460B5243701",
"stop_sequence": 1,
"shape_dist_traveled": 0,
"stop_name": "Eyre Square, stop 524371"
},
// ... {} ..
{
"arrival_time": "06:32:15",
"departure_time": "06:32:15",
"stop_id": "8460B5255401",
"stop_sequence": 20,
"shape_dist_traveled": 6725.97,
"stop_name": "Westside Centre, stop 525541"
}
]
},
// {} ...
]
}
}