Estimated time of departure
GET https://api.bart.gov/api/etd.aspx?orig=MONT&cmd=etd&key={{key}}&dir=s&json=y
The optional parameters 'plat' and 'dir' should not be used together. If they are, then the 'dir' parameter will be ignored and just the platform parameter will be used.
If 'ALL' is used for the orig station, then 'plat' and 'dir' cannot be used.
The
If the combination of 'platform' or 'dir' results in no ETD data, a warning message will be displayed.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
orig | string | Specifies the station. Stations are referenced by their abbreviations. You can also use 'ALL' to get all of the current ETD's. (Required) | |
cmd | string | Requests current departure information. (Required) | |
key | string | API registration key. (Required) | |
plat | null | This will limit results to a specific platform. Valid platforms depend on the station, but can range from 1-4. (Optional) | |
dir | string | This will limit results to a specific direction. Valid directions are 'n' for Northbound and 's' for Southbound. | |
json | string | Returns API output in JSON format. Default output is XML if parameter not specified. (Optional) |