public-transport/gtfs-via-postgres
View on GitHubSingle-agency feeds without `agency_id` are rejected
Open
#73 opened on Aug 31, 2025
buggood first issuehelp wanted
Repository metrics
- Stars
- (141 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
In the GTFS spec, the agency_id field in agency.txt is conditionally required:
- Required when the dataset contains data for multiple transit agencies.
- Recommended otherwise.
Current behaviour:
Single-agency feeds without agency_id are rejected, because agency_id is enforced as a primary key in lib/agency.js.
Expected behaviour:
Single-agency feeds without agency_id should be accepted as per the GTFS spec.