Skip to content

Single-agency feeds without agency_id are rejected #73

@mattkinnia

Description

@mattkinnia

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.

https://github.com/public-transport/gtfs-via-postgres/blob/cd8fe457fe1583b97aaee5e9fcfae1771ca4c938/lib/agency.js#L6C2-L6C29

Expected behaviour:
Single-agency feeds without agency_id should be accepted as per the GTFS spec.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions