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
Name | Type | Description | From GTFS .txt file |
---|---|---|---|
stop_id | string | The stop id | yes |
stop_name | string | The stop name | yes |
stop_lat | number | The stop latitude | yes |
stop_lon | number | The stop longitude | yes |
g_routes_data | array | Contains objects describing routes that this stop is on - route_id, route_short_name, direction_id, typical_stop_sequence_on_route | no |
g_routes | array (of strings) | route_short_name of routes that this stop is on | no |
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
Name | Required | Description |
---|---|---|
stopid | false | The 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
Name | Required | Description |
---|---|---|
route | false | Accepts long or short |
direction | false | Either '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]]}}