What roadway networks does the WZDx API cover?

The WZDx API is designed to cover all local streets, freeways, and state highways in the San Francisco Bay Area for participating jurisdictions. The WZDx API provides planned and active work zone-related activities, closures, and detours on those roadways.

How can I access WZDx Feed?

You can access the WZDx Feed using the following endpoint: https://api.511.org/traffic/wzdx?api_key=[YOUR_API_KEY]

What is 511 Open Data?

511 SF Bay, the free regional traveler information program managed by the Metropolitan Transportation Commission (MTC), currently offers transit, traffic, and toll data through a number of standardized data feed and API endpoints. These open data services are provided to anyone with a valid API key. A single API key can be used with all data endpoints available through the http://api.511.org domain.

How do I obtain an API key and begin receiving data?

An API key can be requested by submitting this form. Once your email address is verified, a key will be issued to you. You will need to use that key with your desired data endpoints to receive data.

I am receiving rate limit error. What is the default request rate limit, and how do I request an increase?

The default limit is 60 requests per 3600 seconds per API key. Rate limit can be increased based on the need and use case. To request an increased rate limit, please contact transitdata@511.org with the following information:

  • your API key,
  • the rate limit you need,
  • a description of the use case,
  • the data endpoints you intend to use,
  • and a brief justification for the requested rate limit.
Where can I get detailed technical specification for all data endpoints?

Relevant technical specifications for transit, traffic, and toll data feeds and APIs can be found at the bottom of transit and traffic open data pages. These documents are kept up to date as and when changes to data feed and API endpoints are deployed in production.

How do I get technical support?

We recommend that our data consumers first review transittraffic and toll technical specifications and then look up our FAQs. If further help is needed, please send an email to our Google group at 511developerresources@googlegroups.com. Someone will respond as soon as possible.

Where do I find transit operator IDs?

All transit service operators currently in the 511 system and their IDs can be queried from the http://api.511.org/transit/operators?api_key={your_key}. 
There are a few things to note about the response of this API: Operators with IDs 5E, 5F, 5O, and 5S are used internally by the 511 system and have no transit service data associated with them. 5E may be used to provide information during regional emergencies.  A ‘true’ value in the <Monitored> tag means that the operator provides real-time data as well.  More information can be found in the “API: Operator” section of the 511 Data Exchange Specifications - Transit documentation.

Where can I find all line IDs for a transit operator?

You can find the IDs and names for all lines for an operator from the Lines API:

http://api.511.org/transit/lines?api_key={your_key}&Operator_id={operatorID}

For more details and available filters, please review the 511 Transit data feed and API specification available in the “API: Line” section of the Open 511 Data Exchange Specification - Transit.

 

How do I get timetable for a route with a specific transit operator?

To get an active timetable for a desired transit route, send a request using the following timetable API:

http://api.511.org/transit/timetable?api_key={your_key}&operator_id={operatorID}&line_id={lineID}

You can obtain the required operatorID and lineID from the Operator and Line APIs referenced in the previous two FAQs. Please note that the timetable provides scheduled times for timepoint stops only. (A timepoint is a major stop which should not be passed earlier than what is published.) For more details and available filters for the timetable API, please review the ”API: Stop” section of the 511 Data Exchange Specification - Transit.

Does 511 Open Data include transit operators outside of the Bay Area that offer commuter services into the region?

511 Open Data currently includes rail services that operate beyond the nine-county San Francisco Bay Area, including Capitol Corridor, ACE and San Joaquins. Transit operators outside the Bay Area, providing express commuter bus services into the Bay Area, are not yet included in the system. However, MTC is exploring the possibility of incorporating those commuter services into 511 Open Data.

Why are some ferry services and shuttles not included in 511 Open Data?

There are several shuttle services in the San Francisco Bay Area, some with scheduled service and others that are flexible. Shuttles with scheduled services that provide data to 511 SF Bay are included in 511 Open Data.  However, 511 SF Bay only includes transit services in the San Francisco Bay Area that are open to the public and operate on a published schedule. Transit operators are required to provide data to the 511 SF Bay system following a protocol in a timely manner. 

Some private ferry operators do not provide scheduled services that are open to the public; therefore, they are not included in 511 Open Data. Other private ferry operators, which do have scheduled departures to tourist destinations, are currently unable to provide their data in a timely manner according to the required protocol. As these ferry operators become capable of providing data that fulfills 511 SF Bay’s requirements, their data will be made available through our system.

What are Regional GTFS and Regional GTFS-RT feeds?

The General Transit Feed Specification (GTFS) is an Open Standard used to distribute relevant information about transit systems to riders. To provide data consumers with value-added single data feeds for static and real-time transit data, 511 SF Bay has consolidated all data provided by the transit agencies in the region into the Regional General Transit Feed Specification (GTFS) feed or the Regional GTFS-RT feed for real-time information. The Regional feeds provide data consumers a well-supported and curated single source for transit data for 30+ transit operations. In addition, these feeds not only merge data from transit agencies but also support cross-agency conditions through GTFS Fares V2 and GTFS Pathways data.

How can I download the Regional GTFS Feed?

You can download the Regional GTFS Feed using ‘RG’ value for the operator filter in the Datafeeds API endpoint, as shown in the following data endpoint:    

http://api.511.org/transit/datafeeds?api_key=[YOUR_API_KEY]&operator_id=RG
How can I download Regional GTFS-RT Feeds?

You can download Regional GTFS-RT Feeds using the ‘RG’ value for the agency filter in TripUpdates, VehiclePositions, and ServiceAlerts data API endpoints. Here are the complete data endpoints:    

Regional Trip Updates: https://api.511.org/Transit/TripUpdates?api_key=[YOUR_API_KEY]&agency=RG

Regional Vehicle Positions: https://api.511.org/Transit/VehiclePositions?api_key=[YOUR_API_KEY]&agency=RG

Regional Service Alerts: https://api.511.org/transit/servicealerts?api_key=[YOUR_API_KEY]&agency=RG

Is there a historic GTFS-RT feed?

Historic GTFS-RT feeds are available in the form of a real-time data archive – stop_observations.txt – that will allow data consumers to download observed real-time arrival times at all stops for all trips in a monthly historic static GTFS data feed. This data, alongside the historic scheduled arrivals/departures, can be valuable for transit service analysis, transportation planning, and other research purposes. Stop_observations file is available in monthly historic feed starting from March 2022 and can be requested by appending ‘-so’ to the ‘yyyy-mm’ historic parameter value as shown in the following sample URL:

https://api.511.org/transit/datafeeds?api_key=[YOUR_API_KEY]&operator_id=RG&historic=2023-01-so
What is the purpose of the historic GTFS feed? How can I get it?

The historic Regional GTFS feed is produced monthly and provides a complete, retrospective view of services scheduled on each day of the month. By combining multiple monthly historical feeds, users can perform analyses across months, quarters and years.    

The historic Regional GTFS feed can be downloaded by using the filter ‘historic’ with the datafeeds API. The following is a sample URL to download the historic feed for January 2021.

https://api.511.org/transit/datafeeds?api_key=[YOUR_API_KEY]&operator_id=RG&historic=2021-01
How are the historic GTFS feeds different from the Regional GTFS feeds?

Historic Regional GTFS feeds are equivalent to the original daily Regional Feeds in the stops, routes, and scheduled services they contain. The use of a historic feed will produce the same output in a routing engine or other tools used for analysis.    

Historic feeds are different from Regional GTFS feeds in their specific GTFS structure:        

  • calendars.txt records are removed and rewritten in calendar_dates.txt   
  • trips.txt records are hashed and compared (as described in Appendix E3.3 of Open Data Specification - Transit)   
  • IDs for global records are namespaced (as described in Appendix E.3.2 of Open Data Specification - Transit)   
  • Additional stop_ observations.txt file, if requested explicitly, provides observed real-time arrivals at every stop for all trips.        

These differences should not affect routing engines or similar types of analysis. However, data consumers should keep these differences in mind when they are trying to use historical feeds to understand changes in GTFS data and its practices over time at Bay Area agencies.

Is detailed transit fare information provided? How?

Yes, 511 SF Bay provides detailed fare information for all transit agencies in the San Francisco Bay Area region as part of the Regional GTFS feed in the proposed GTFS Fares V2 format (URL: http://bit.ly/gtfs-fares). 

You can download the Regional GTFS Feed using ‘RG’ value for the operator filter in the Datafeeds API endpoint, as shown in the following data endpoint:    

http://api.511.org/transit/datafeeds?api_key=[YOUR_API_KEY]&operator_id=RG
Does 511 Open Data provide Pathways data?

Yes, the 511 SF Bay Open Data Portal now provides pathways information for many transit stations/hubs in the region in the GTFS Pathways format. This information is provided as part of the 511’s Regional GTFS feed. 

You can download the Regional GTFS Feed using ‘RG’ value for the operator filter in the Datafeeds API endpoint, as shown in the following data endpoint:    

http://api.511.org/transit/datafeeds?api_key=[YOUR_API_KEY]&operator_id=RG
Does 511 Open Data Portal provide any toll information?

Yes, the 511 Open Data Portal provides toll data for all San Francisco Bay Area bridges and dynamic toll rate data for some express lane corridors in the region.  This information is available over 511’s toll API endpoint, and can be accessed using the following URL: 

https://api.511.org/toll/programs?api_key=ENTER-API-KEY-HERE
What roadway network does the traffic event API cover?

The 511 SF Bay program covers all freeways and state highways in the San Francisco Bay Area. The traffic event API provides active incidents and planned events on those roadways. Detailed technical specifications of the traffic event API can be downloaded from the 511 Data Exchange Specification – Traffic Event API guide.

Does the WZDx feed use any data standard?

Yes, the 511 SF Bay Work Zone Data Exchange (WZDx) feed utilizes the specification put together by a consortium of U.S. Department of Transportation (USDOT) agencies, including the Federal Highway Administration (FHWA), Intelligent Transportation Systems Joint Program Office (ITS JPO), and others. The specification can be found at https://github.com/usdot-jpo-ode/wzdx.