Routes
GET http://api.bart.gov/api/route.aspx?cmd=routes&key={{key}}&json=y
Route Information sometimes changes with schedule changes as routes are reconfigured. This may affect the name and abbreviation of the route.
The optional date
and sched
parameters should not be used together. If they are, the date will be ignored, and the sched parameter will be used.
WARNING: the current color
value is incorrect, it should be a text value (e.g. ORANGE
). Please use the hexcolor
value until the color value has been changed.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
cmd | string | Requests information regarding current lines. (Required) | |
key | string | API registration key. (Required) | |
sched | null | Specifies a specific schedule to use. Defaults to current schedule. (Optional) | |
date | null | Specifies a specific date to use. This will determine the appropriate schedule for that date, and give back information about the lines for that schedule. Date can also be specified as "today" or "now". (Optional) | |
json | string | Returns API output in JSON format. Default output is XML if parameter not specified. (Optional) |