Add providers to the GTFS feed response

Đang mở
#1,910 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
65/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
api

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Python
Star
34
Fork
7
Merge trung bình
2 ngày 22 giờ
Pull request đã merge (30 ngày)
21

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của MobilityData/mobility-feed-api

Tất cả issue của MobilityData/mobility-feed-api

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.