BART Schedule Notification

Number of APIs: 9

This collection collects information on the upcoming BART trips and travel time to the origin station using the user specified origin and destination stations, starting coordinates, and type of travel (defaults to walking). The collections compiles this information and send a Slack DM to a specified user.

Collection Private Variables

You will need to acquire a token for authorization with these APIs. The BART public token is prepopulated but subject to change.

User configurable variables

  • tripStartAddress - The address the user is leaving from to travel to the origin train station
  • tripEndCoordinates - The coordinates of the origin station
  • routeType - defaults to pedestrian. See MapQuest API documentation for other modes
  • originStation - BART origin station abbreviation
  • destinationStation - BART destination station abbreviation

API Providers

  1. Service Advisories GET {{bartBaseUrl}}/bsa.aspx?cmd=bsa&json=y

  2. Stations GET {{bartBaseUrl}}/stn.aspx?cmd=stns&json=y

  3. Station Information - Origin GET {{bartBaseUrl}}/stn.aspx?cmd=stninfo&orig={{originStation}}&json=y

  4. Station Information - Destinatation GET {{bartBaseUrl}}/stn.aspx?cmd=stninfo&orig={{destinationStation}}&json=y

  5. Schedule - Departure GET {{bartBaseUrl}}/sched.aspx?cmd=depart&orig={{originStation}}&dest={{destinationStation}}&date=now&b=0&a=4&l=1&json=y

  6. Real-Time Estimate - Departure GET {{bartBaseUrl}}/etd.aspx?cmd=etd&orig={{originStation}}&json=y

  7. MapQuest - Route GET http://open.mapquestapi.com/directions/v2/route?from={{tripStartAddress}}&to={{tripEndCoordinates}}&routeType={{routeType}}

  8. Slack Message POST https://slack.com/api/chat.postMessage

  9. Fare GET {{bartBaseUrl}}/sched.aspx?cmd=fare&orig={{originStation}}&dest={{destinationStation}}&date=today&json=y