Skip to ContentGalway Bus API Docs

GStop

Extension of the data from GTFS stops.txt file. It contains everything from that file plus information about bus routes associated with the stops.

GStop Schema

GStop Schema
NameTypeDescriptionFrom GTFS .txt file
stop_idstringThe stop idyes
stop_namestringThe stop nameyes
stop_latnumberThe stop latitudeyes
stop_lonnumberThe stop longitudeyes
g_routes_dataarrayContains objects describing routes that this stop is on - route_id, route_short_name, direction_id, typical_stop_sequence_on_routeno
g_routesarray (of strings)route_short_name of routes that this stop is onno

GET all GStops

Example

Request

/api/gstop/bystopid

Response

{
"results": {
"stops": [
{
"stop_id": "84605257301",
"stop_name": "Seamus Quirke Road, stop 525731",
"stop_lat": 53.274450938559,
"stop_lon": -9.07946923657427,
"g_routes_data": [
{
"route_short_name": "404",
"direction_id": "0",
"typical_stop_sequence_on_route": 33
},
{
"route_short_name": "405",
"direction_id": "0",
"typical_stop_sequence_on_route": 5
}
],
"g_routes": ["404", "405"]
}
// ... 347 more GStops
]
}
}

GET GStop by stopid

Params

uri parameters
NameRequiredDescription
stopidfalseThe stop id

Example

Request

/api/gstop/bystopid/8460B5228201,8460B5230101

Response

{
"results": {
"stops": [
{
"stop_id": "8460B5228201",
"stop_name": "Merlin Park Hospital, stop 522821",
"stop_lat": 53.2772418198183,
"stop_lon": -8.99416106084897,
"g_routes_data": [
{
"route_short_name": "402",
"direction_id": "0",
"typical_stop_sequence_on_route": 42
},
{
"route_short_name": "402",
"direction_id": "1",
"typical_stop_sequence_on_route": 1
}
],
"g_routes": ["402"]
},
{
"stop_id": "8460B5230101",
"stop_name": "Eyre Square, stop 523011",
"stop_lat": 53.2747593973541,
"stop_lon": -9.04893497271275,
"g_routes_data": [
{
"route_short_name": "402",
"direction_id": "1",
"typical_stop_sequence_on_route": 20
},
{
"route_short_name": "407",
"direction_id": "0",
"typical_stop_sequence_on_route": 1
}
],
"g_routes": ["402", "407"]
}
]
}
}

GET GStop by route, direction

Params

uri parameters
NameRequiredDescription
routefalseAccepts long or short
directionfalseEither '1' or '0'

Example

Request

/api/gstop/byrouteid/401/0

Response

{
"results": {
"routes": [
[
{
"stop_id": "8460B6355601",
"stop_name": "Galway Tech Park, stop 635561",
"stop_lat": 53.29902494788,
"stop_lon": -8.98686582677608,
"g_routes_data": [
{
"route_short_name": "401",
"direction_id": "0",
"typical_stop_sequence_on_route": 1
},
{
"route_short_name": "409",
"direction_id": "1",
"typical_stop_sequence_on_route": 1
}
],
"g_routes": ["401", "409"]
}
// ... more GStops
]
]
}
}