Add providers to the GTFS feed response

オープン
#1,910 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
65/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
api

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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_providers array to the GET /v1/gtfs_feeds/{id} response.
  • Each item returns the provider's id, name, role (agency or publisher), name aliases and contacts (website, email, phone).
  • Only providers with status=published are returned.
  • Additive only: the existing provider field is unchanged. Its description clarifies that it is the curated display name, while feed_providers lists the linked provider records.
  • Wording: no "canonical" in fields or descriptions.

Acceptance criteria:

  • A feed with no published providers returns an empty feed_providers array.
  • Existing response fields are unchanged.
Alternatives you've considered
  • A separate /v1/gtfs_feeds/{id}/feed_providers endpoint: rejected, providers belong to the feed resource.
  • Exposing raw agency.txt / feed_info.txt per dataset: out of scope, dataset-level data is not public for now.
Additional context
主要言語
Python
スター
34
フォーク
7
平均マージ
2日 22時間
マージ済み PR(30日)
21

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MobilityData/mobility-feed-api のほかの issue

MobilityData/mobility-feed-api の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。