Open Bertware opened 3 years ago
Where do you want to set the id automatically? in the agency table?
If you want to send a PR, I'll be happy to review and merge.
This issue is not directly affecting me, I merely noticed it while writing another PR, so I figured I'd report it in case anyone else wants to take it up.
The agency id would be set automatically in the routes table, and it would point to the only agency that is present in the agencies table. If multiple IDs is set, agency_id becomes required on routes.txt.
When agency_id is not set on a route, the import fails. Example feed: https://www.bart.gov/sites/default/files/docs/google_transit_20211001_20220213_v1.zip
From the spec:
Suggested fix: set the agency_id automatically to the one included agency if no agency_id is defined