Charlotte Area Transit (CATS)
v2.1.1CATS bus and light rail trip planning, live arrivals, timetables, routes, and service alerts
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_vehicles Find buses and trains
Current GPS positions of CATS buses and trains in service. Give "vehicle" to locate one bus or train by its number (e.g. "2301"), "route" for every vehicle on a route (e.g. "9", "501", "Blue Line"), "mode" for buses or trains, or nothing for the whole system. Includes heading, speed, occupancy, headsign, and the next stop when available.
| Parameter | Type | Description |
|---|---|---|
limit | Maximum vehicles to return. | |
mode | ||
route | ||
vehicle |
list_stops Find stops and stations
CATS stops and stations with the bus routes and light rail lines serving each (501 is the LYNX Blue Line, 510 the CityLYNX Gold Line). For "closest station" or "near me" questions, pass the user's current device location as latitude and longitude; results are then nearest first with metersAway. Narrow with "mode" (e.g. train for the nearest rail station), "route", or "query" (part of a name). Same-named platforms close together are returned as one station. The complete raw stop table is the gtfs://static/stops.txt resource.
| Parameter | Type | Description |
|---|---|---|
latitude | ||
limit | Maximum stations to return (default 10 with a location, 250 without). | |
longitude | ||
mode | Only stops with bus or train service. | |
query | Stop id, stop code, or part of a stop name, e.g. "Tryon". | |
route | Only stops this route serves. |
get_arrivals Get arrival times at a stop
Estimated arrival times of buses or trains at one stop or station. Give "stop" (a stop id, stop code, or part of a stop name), or, for "my stop" / "near me" questions, the user's current device location as latitude and longitude to use the nearest station. With a location, "mode" or "route" picks the nearest stop that service actually calls at, so asking for trains finds the nearest rail station rather than a closer bus stop. Reports minutes away, schedule deviation, the vehicle number, and any service alerts.
| Parameter | Type | Description |
|---|---|---|
latitude | ||
limit | Maximum arrivals to return. | |
longitude | ||
mode | Only show bus or train arrivals. | |
route | Only show arrivals for this route. | |
stop |
plan_trip Plan a trip
Plan a trip on CATS buses and trains between two places, with walking at either end and between stops. Give the start as origin_stop or origin_latitude and origin_longitude (use the user's current device location for 'from here'), and the destination the same way (look up a venue's or address's coordinates first). Leave now by default, or give depart_at or arrive_by with an optional date. Returns up to 3 itineraries: each ride's route, where to board and get off, the vehicle's destination, times including live delays when a vehicle is reporting, wait at each transfer, and walking legs. Walking…
| Parameter | Type | Description |
|---|---|---|
arrive_by | ||
date | ||
depart_at | ||
destination_latitude | ||
destination_longitude | ||
destination_stop | Destination stop id, code, or name. | |
max_transfers | Most vehicle changes allowed (default 2). | |
max_walk_meters | Longest walk to the first stop or from the last, in meters (default 800). | |
origin_latitude | ||
origin_longitude | ||
origin_stop | Starting stop id, code, or name. |
get_schedule Get the timetable at a stop
The published timetable at one stop or station for a date: scheduled departures with each trip's route and real destination, and the first and last departure that day. Use it for 'when is the last train tonight', 'does this bus run on Sunday', or times later today or on another date; use get_arrivals instead for live predictions in the next hour. Give "stop", or the user's location as latitude and longitude for the nearest stop serving the route or mode. Times default to from now (today) or the start of service (other dates).
| Parameter | Type | Description |
|---|---|---|
after | ||
before | ||
date | ||
latitude | ||
limit | Maximum departures to list (default 20). | |
longitude | ||
mode | Only bus or train departures. | |
route | Only departures on this route. | |
stop |
get_route Describe a route
Everything about one CATS route on a date: for each direction, where it goes, its stops in order, its first and last trips, and how often it runs in the early morning, morning rush, midday, afternoon rush, evening, and late night. Also how many trips run on each of the next seven days, and how many service alerts are active. Use it for 'where does the Blue Line go' or 'how often does the 9 run on Saturday' (pass that Saturday's date).
| Parameter | Type | Description |
|---|---|---|
route * | string | Route number or name, e.g. "9", "501", "Blue Line", "Airport". |
date |
get_service_alerts Get service alerts
Current and upcoming CATS service alerts: detours, closed stops, and suspended service, with what is affected, why, and until when. Give "route" or "stop" to narrow them, the user's location as latitude and longitude for alerts affecting stops within 800 m, or nothing for every alert in the system.
| Parameter | Type | Description |
|---|---|---|
latitude | ||
longitude | ||
route | Alerts affecting this route. | |
stop |