Add providers to the GTFS feed response
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 65/100
Research direction
Start by locating the GET /v1/gtfs_feeds/{id} response schema and the code that assembles a feed from its latest dataset. Trace how published agency and publisher records are linked, and check the endpoint’s existing tests. Done means the response includes the specified feed_providers array, including an empty array when none are published, while existing fields remain unchanged.
Written by the indexing model from the issue text.
Description
Describe the problem
Agencies and publishers linked to a feed (from its latest dataset's agency.txt and feed_info.txt) are not exposed. API consumers only get the free-text provider field, which does not tell them who operates or publishes a feed, or how to contact them.
Proposed solution
- Add an optional
feed_providersarray to theGET /v1/gtfs_feeds/{id}response. - Each item returns the provider's
id,name,role(agencyorpublisher), name aliases and contacts (website, email, phone). - Only providers with
status=publishedare returned. - Additive only: the existing
providerfield is unchanged. Its description clarifies that it is the curated display name, whilefeed_providerslists the linked provider records. - Wording: no "canonical" in fields or descriptions.
Acceptance criteria:
- A feed with no published providers returns an empty
feed_providersarray. - Existing response fields are unchanged.
Alternatives you've considered
- A separate
/v1/gtfs_feeds/{id}/feed_providersendpoint: rejected, providers belong to the feed resource. - Exposing raw
agency.txt/feed_info.txtper dataset: out of scope, dataset-level data is not public for now.
Additional context
- Dominant language
- Python
- Stars
- 34
- Forks
- 7
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 22
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MobilityData/mobility-feed-api
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
MobilityData/mobility-feed-api#1927 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
MobilityData/mobility-feed-api#1846 ·
Maintainers usually reply within 2 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
MobilityData/mobility-feed-api#1755 · 1 reaction ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
MobilityData/mobility-feed-api#1647 ·
Maintainers usually reply within 2 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
MobilityData/mobility-feed-api#836 ·
Maintainers usually reply within 2 days
All issues in MobilityData/mobility-feed-api
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
OStrama/weishaupt_modbus#216 ·
-
bug follow-up
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
Retire stale Python-parity labels in Rust ingress and auth testsPossibly taken @github-actions claimed this today. Openfactory factory:building factory:unowned ralph-status:in-progress via:opencode-free/hy4-flash-free
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
JoshCLWren/comic-pile#5874 · 2 comments ·
Maintainers usually reply within 1 day
-
good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
area: community lane: free-agent priority: P1 roadmap type: task
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
velella-sh/offing#1046 ·
Maintainers usually reply within 1 day