Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate Agency Data in gtfs_agencies/list Endpoint #1011

Open
AvivSela opened this issue Jan 15, 2025 · 1 comment
Open

Duplicate Agency Data in gtfs_agencies/list Endpoint #1011

AvivSela opened this issue Jan 15, 2025 · 1 comment
Labels
backend backend developers issue waiting for product we need someone to clarify the issues and decide on which action items should be done to solve this

Comments

@AvivSela
Copy link

The gtfs_agencies/list endpoint (https://open-bus-stride-api.hasadna.org.il/gtfs_agencies/list) is returning duplicate data for agencies. For example, the same agency appears multiple times across different dates but with identical operator_ref and agency_name.

Steps to Reproduce

  1. Call the endpoint: https://open-bus-stride-api.hasadna.org.il/gtfs_agencies/list.
  2. Observe the response containing duplicate entries for some agencies.

Example Response

[
  {'date': '2023-01-01', 'operator_ref': 15, 'agency_name': 'מטרופולין'},
  {'date': '2023-01-02', 'operator_ref': 15, 'agency_name': 'מטרופולין'},
  {'date': '2023-01-03', 'operator_ref': 15, 'agency_name': 'מטרופולין'}
]
@NoamGaash NoamGaash added backend backend developers issue waiting for product we need someone to clarify the issues and decide on which action items should be done to solve this labels Jan 22, 2025
@NoamGaash
Copy link
Member

maybe it's making some sense if the same id reused for different operators, but I don't think it's the case.
I wonder what's the purpose of the date fiels - is it the date when this agency was discovered in the raw gtft data?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend backend developers issue waiting for product we need someone to clarify the issues and decide on which action items should be done to solve this
Projects
None yet
Development

No branches or pull requests

2 participants