A cheat sheet for Bay Area 511 GTFS-rt feeds.

511.org in the (California) Bay Area provides GTFS and GTFS-Realtime for many of the agencies in the region, including VTA, Caltrain, SF Muni, AC Transit, and a whole lot more.

The docs are available here, but I find the PDF a little dense (and there are some peculiarities), so this is a cheat sheet.

First you need a token sent to your email address.

 

The first note: API parameters are inconsistent. “Operator ID” and “agency” are used interchangeably to request a particular agency’s feed. A complete list is listed at the foot of this post.

Static GTFS are available at: http://api.511.org/transit/datafeeds?api_key=…&operator_id=SC
NOTE: the GTFS-rt feeds match *these* GTFS files, and are not guaranteed to work with the agency’s original GTFS feed.

GTFSrt TripUpdates are at: http://api.511.org/Transit/TripUpdates?api_key=…&agency=SC.

As of June 2081, the agencies with TripUpdates are: [‘3D’, ‘AC’, ‘BA’, ‘CC’, ‘CT’, ‘DE’, ‘FS’, ‘GG’, ‘MA’, ‘SC’, ‘SF’, ‘SM’, ‘SR’, ‘ST’, ‘VN’, ‘WC’, ‘WH’]

GTFSrt VehiclePositions are at: http://api.511.org/Transit/VehiclePositions?api_key={your-key}&agency=AC

Agencies with Positions: [‘3D’, ‘AC’, ‘BA’, ‘CC’, ‘CT’, ‘DE’, ‘FS’, ‘GG’, ‘MA’, ‘SC’, ‘SF’, ‘SM’, ‘SR’, ‘ST’, ‘VN’, ‘WC’, ‘WH’]

GTFSrt Service alerts (for all agencies) are at: http://api.511.org/transit/servicealerts?api_key={your-key}

IDs for all agencies (from http://api.511.org/transit/gtfsoperators?api_key=… current as of June 2018)

Id
Name
LastGenerated
3D
Tri Delta Transit
6/12/2018 4:57:33 PM
AC
AC Transit
6/15/2018 10:42:47 PM
AM
Capitol Corridor Joint Powers Authority
5/22/2018 6:39:59 PM
AY
American Canyon Transit
5/22/2018 6:42:44 PM
BA
Bay Area Rapid Transit
5/25/2018 9:12:39 PM
CC
County Connection
6/9/2018 9:13:31 PM
CE
Altamont Corridor Express
5/22/2018 7:01:43 PM
CM
Commute.org Shuttle
5/24/2018 1:38:52 PM
CT
Caltrain
6/12/2018 5:00:25 PM
DE
Dumbarton Express Consortium
6/17/2018 9:01:21 PM
EM
Emery Go-Round
5/22/2018 7:07:13 PM
FS
Fairfield and Suisun Transit
5/22/2018 7:11:40 PM
GF
Golden Gate Ferry
6/9/2018 9:14:27 PM
GG
Golden Gate Transit
6/18/2018 4:23:55 PM
MA
Marin Transit
5/22/2018 7:51:42 PM
MS
Stanford Marguerite Shuttle
5/22/2018 7:54:32 PM
PE
Petaluma Transit
5/22/2018 7:56:07 PM
RV
Rio Vista Delta Breeze
5/22/2018 7:56:45 PM
SA
Sonoma Marin Area Rail Transit
5/22/2018 7:58:04 PM
SB
San Francisco Bay Ferry
5/22/2018 7:58:46 PM
SC
VTA
5/22/2018 9:07:37 PM
SF
San Francisco Municipal Transportation Agency
6/16/2018 12:55:44 AM
SM
SamTrans
6/14/2018 3:23:36 PM
SO
Sonoma County Transit
5/29/2018 3:32:08 PM
SR
Santa Rosa CityBus
6/5/2018 12:33:36 PM
ST
SolTrans
5/23/2018 2:25:40 AM
UC
Union City Transit
5/23/2018 2:26:53 AM
VC
Vacaville City Coach
5/23/2018 2:28:06 AM
VN
Vine
5/23/2018 2:31:57 AM
WC
WestCat (Western Contra Costa)
5/23/2018 2:35:18 AM
WH
Livermore Amador Valley Transit Authority
6/5/2018 9:10:50 PM

 

Leave a Reply

Your email address will not be published. Required fields are marked *