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.
bartApiKey
- BART API WebsitemqApiKey
- MapQuest OpenMap API KeyslackMemberID
- Slack Member ID for direct messaging, accessible from profile page in SlackslackToken
- Slack App Token - Slack Apps
User configurable variables
tripStartAddress
- The address the user is leaving from to travel to the origin train stationtripEndCoordinates
- The coordinates of the origin stationrouteType
- defaults to pedestrian. See MapQuest API documentation for other modesoriginStation
- BART origin station abbreviationdestinationStation
- BART destination station abbreviation
API Providers
-
Service Advisories GET {{bartBaseUrl}}/bsa.aspx?cmd=bsa&json=y
-
Stations GET {{bartBaseUrl}}/stn.aspx?cmd=stns&json=y
-
Station Information - Origin GET {{bartBaseUrl}}/stn.aspx?cmd=stninfo&orig={{originStation}}&json=y
-
Station Information - Destinatation GET {{bartBaseUrl}}/stn.aspx?cmd=stninfo&orig={{destinationStation}}&json=y
-
Schedule - Departure GET {{bartBaseUrl}}/sched.aspx?cmd=depart&orig={{originStation}}&dest={{destinationStation}}&date=now&b=0&a=4&l=1&json=y
-
Real-Time Estimate - Departure GET {{bartBaseUrl}}/etd.aspx?cmd=etd&orig={{originStation}}&json=y
-
MapQuest - Route GET http://open.mapquestapi.com/directions/v2/route?from={{tripStartAddress}}&to={{tripEndCoordinates}}&routeType={{routeType}}
-
Fare GET {{bartBaseUrl}}/sched.aspx?cmd=fare&orig={{originStation}}&dest={{destinationStation}}&date=today&json=y