Description Usage Arguments Value See Also
Returns routes that serve a particular stop.
1 | Troutesbystop(stop_id = NULL, api_key)
|
stop_id |
GTFS-compatible stop_id value for which routes should be returned. Example: "70065" |
api_key |
API key for MBTA API. To obtain one, visit the MBTA Developer Portal (http://realtime.mbta.com/Portal/) |
stop_id |
The GTFS-compatible unique identifier for the stop for which routes are returned. Example: "70065" |
stop_name |
The GTFS-compatible name for the stop for which routes are returned. Example: "Porter Sq - Inbound" |
route_type |
The GTFS-compatible identifier for the type of service (mode). Example: "2" |
mode_name |
The human-readable name for the type of service (mode). Example: "Commuter Rail" |
route_id |
The unique GTFS-compatible identifier for the route. Example: "CR-Providence" |
route_name |
The human-readable name for the route. Example: "Providence/Stoughton Line" |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.