Check BART departures

Using station codes and the BART API, gets real-time transit information for trains in the Bay Area.

Actions Used

shortcuts-action-icon-repeat-with-each.webp
Repeat with Each
Takes a list of items as input, and runs the contained actions once for each item in the list.
shortcuts-action-icon-if.webp
If
Tests if a condition is true, and if so, runs the actions inside. Otherwise, the actions under “Otherwise” are run.
shortcuts-action-icon-get-dictionary-from-input.webp
Get Dictionary from Input
Makes a dictionary from the text passed as input. JSON (like {“foo”: “bar”}), key-value pairs (like foo=bar&baz=biz), and XML-based plist are supported.
shortcuts-action-icon-get-dictionary-value.webp
Get Dictionary Value
Gets the value for the specified key in the dictionary passed into the action.
shortcuts-action-icon-dictionary.webp
Dictionary
Passes the specified list of key-value pairs to the next action as a dictionary.
shortcuts-action-icon-file.webp
Filter Files
Given a list of files, this action returns the files that match the given criteria. Allows for sorting, changing the order, and limiting the number passed as a result.
shortcuts-action-icon-get-contents-of-url.webp
Get Contents of URL
Gets the contents of URLs passed into the action. Useful for downloading files and web content, or for making API requests. Includes GET, POST, PUT, PATCH, DELETE methods, and options to add headers. To make a multipart HTTP request, choose “Form” as the request body type and add files as field values.
shortcuts-action-icon-url.webp
URL
Passes the specified URL to the next action.
shortcuts-action-icon-combine-text.webp
Combine Text
Joins text together, inserting the separator between each join.
shortcuts-action-icon-text.webp
Text
Passes the specified text to the next action.
action-icon-set-name.webp
Set Name
Sets the name of the item passed as input.
shortcuts-action-icon-count.webp
Count
Counts the number of items, characters, words, sentences, or lines passed as input. Note (from Apple, for real) This is just like the Count in Sesame Street, but instead of a vampire, it’s a Shortcuts action.
shortcuts-action-icon-get-item-from-list.webp
Get Item from List
Returns one or more items from the list passed as input. You can get the first item, the last item, a random item, the item at a particular index, or items in a range of indexes.
shortcuts-action-icon-choose-from-list.webp
Choose from List
Presents a menu of the items passed as input to the action and outputs the user’s selection. Prompt The instruction provided when the list is presented. Select Multiple When enabled, multiple items may be chosen from the list.
shortcuts-action-icon-show-result.webp
Show Result
Shows the specified text in Siri or in an alert.
action-icon-calculate.webp
Calculate
Performs a number operation on the input and returns the result.

Extra Details

Run Shortcut deep link
shortcuts://run-shortcut?name=Check%20BART%20departures
Open Shortcut deep link
shortcuts://open-shortcut?name=Check%20BART%20departures
AppleScript code
tell application “Shortcuts Events” run shortcut “Check BART departures” end tell

More From This Folder

Search Apple Maps

Asks for your search query, encodes the text, then opens the deep link into Apple Music.

Reference: https: or or developer.apple.com or library or archive or featuredarticles or iPhoneURLScheme_Reference or MapLinks or MapLinks.html

Get Shortcut »

More From The Library


Get way deeper into Shortcuts – become a member.