Chicago Transit Wiki

Navigation

Recent site activity

Home‎ > ‎

Bustracker API

List of endpoints

General Notes: key is passed to all the endpoints - however it will work without the key.


getRoutePoints

Description: Returns latitude/longitude, stop IDs, and stop names for bus stops along a particular route.
Proxy Endpoint: http://chicago.transitapi.com/bustime/map/getRoutePoints.jsp
Original Endpoint: http://ctabustracker.com/bustime/map/getRoutePoints.jsp
Required: Route
Example Request: http://chicago.transitapi.com/bustime/map/getRoutePoints.jsp?route=49



getPatternPoints

Description:
Proxy Endpoint: http://chicago.transitapi.com/bustime/map/getPatternPoints.jsp
Original Endpoint: http://ctabustracker.com/bustime/map/getPatternPoints.jsp
Required: pattern, route
Example Request: http://chicago.transitapi.com/bustime/map/getPatternPoints.jsp?route=20&pattern=959
Notes:



getStopPredictions

Description: Gets stop predictions. Timing and whatnot.
Proxy Endpoint: http://chicago.transitapi.com/bustime/map/getStopPredictions.jsp
Original Endpoint: http://ctabustracker.com/bustime/map/getStopPredictions.jsp
Required: stop, route
Example Request: http://chicago.transitapi.com/bustime/map/getStopPredictions.jsp?stop=8207&route=49
Notes: route can be stacked. ie: route=50-92. which would give you stop predictions for stops that have both foster and damen.



getBusPredictions

Description: Returns arrival predictions for a particular bus.
Proxy Endpoint: http://chicago.transitapi.com/bustime/map/getBusPredictions.jsp
Orginal Endpoint: http://ctabustracker.com/bustime/map/getBusPredictions.jsp
Required: bus
Example Request: http://chicago.transitapi.com/bustime/map/getBusPredictions.jsp?bus=6654
Notes:



getBusesForRoute

Description: Gets buses for specific route
Proxy Endpoint: http://chicago.transitapi.com/bustime/map/getBusesForRoute.jsp
Original Endpoint: http://ctabustracker.com/bustime/map/getBusesForRoute.jsp
Required: route
Example Request: http://chicago.transitapi.com/bustime/map/getBusesForRoute.jsp?route=49
Notes:



getBusesForRouteAll

Description: Gets information about every bus in the system.
Proxy Endpoint: http://chicago.transitapi.com/bustime/map/getBusesForRouteAll.jsp
Original Endpoint: http://ctabustracker.com/bustime/map/getBusesForRouteAll.jsp
Required:
Example Request: http://chicago.transitapi.com/bustime/map/getBusesForRouteAll.jsp
Notes:



Schedule

Description: Download the Schedule
Proxy Endpoint: http://chicago.transitapi.com/bustime/map/schedules.jsp
Original Endpoint: http://ctabustracker.com/bustime/map/schedules.jsp
Required: agency, route
Example Request: http://chicago.transitapi.com/bustime/map/schedules.jsp?agency=1&route=92
Notes: agency must be set to 1


getTimeAndTemp

Description: Outputs the current time and temp
Proxy Endpoint: http://chicago.transitapi.com/bustime/map/getTimeAndTemp.jsp
Original Endpoint: http://ctabustracker.com/bustime/map/getTimeAndTemp.jsp
Required:
Example Request:http://chicago.transitapi.com/bustime/map/getTimeAndTemp.jsp
Notes: Obviously this is chicago time


routeDirectionStopAsXML

Description: Outputs the Direction that routes go and the stops of that route
Proxy Endpoint: http://chicago.transitapi.com/bustime/eta/routeDirectionStopAsXML.jsp
Required: route, direction is optional
Example Request:http://chicago.transitapi.com/bustime/eta/routeDirectionStopAsXML.jsp
Example Request:http://chicago.transitapi.com/bustime/eta/routeDirectionStopAsXML.jsp?route=147
Example Request:http://chicago.transitapi.com/bustime/eta/routeDirectionStopAsXML.jsp?route=147&direction=north%20bound
Notes: Outputs the direction if you exclude the direction, outputs the stops if you include both

More to come ;)

Attachments (1)