GTFS 511
This module provides GTFS and GTFS Realtime feeds from the 511 SF Bay Open Data API. It allows you to select transit operators and automatically creates and updates the necessary feed entities for each one. This module simplifies the process by managing feed bookkeeping and integrating with GTFS Utilities and GTFS Realtime modules for data storage and import.
Provisions GTFS and GTFS Realtime feeds from the 511 SF Bay Open Data API. Pick your operators from a list; the module creates the feed entities for each one and keeps them current.
This is a thin provisioning layer. All storage and import work is done by GTFS Core and GTFS Realtime. What it removes is the feed bookkeeping — the URLs, the operator codes, and the three separate feed entities each agency needs.
Features
- Reads the operator list live from 511 and presents it as a checkbox list, so you are choosing from what the API actually offers rather than transcribing codes from a PDF.
- Creates a static GTFS feed plus trip-update and vehicle-position realtime feeds for every operator you select.
- Re-syncs on demand, picking up operators added or renamed upstream.
- Keeps the API token in a Key entity rather than in exported configuration.
- Saves settings without syncing, for when you want to line up operators before importing them.
Requirements
GTFS Core 3.x, GTFS Realtime 2.x, Key, and a 511 API token — free, from 511.org. The default rate limit is 60 requests per hour.
Installation
composer require drupal/gtfs_511
Configuration
Store your token as an authentication key at Administration › Configuration › System › Keys. Then go to Administration › GTFS › 511 settings (/admin/gtfs/511/settings), select the key, tick your operators, and choose Save and sync.
Scope
511 SF Bay covers Metropolitan Transportation Commission member agencies in the nine-county Bay Area. The pattern generalises to any regional aggregator with an operator list and per-operator feed URLs. If you build the equivalent for another region, open an issue and we will link it from here.
Related modules
- GTFS Core — the entities, the importer and the API everything else reads
- GTFS Realtime — trip updates, vehicle positions and service alerts
- GTFS Display — stop, route and system displays for public screens
- GTFS Display Map — route and stop geometry on a map
- GTFS Display Map RT — live vehicles, and an embeddable map
- GTFS Schedule — readable timetables
- GTFS+ — the GTFS+ extension files
Maintainers
Maintained by tbcs and jpsalter, supported by FivePaths. These modules run public transit information systems in daily service. Issues and merge requests are welcome, and so are co-maintainers.