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

Support for multiple agencies #15

Closed
adrianmo opened this issue May 26, 2020 · 2 comments · Fixed by #16
Closed

Support for multiple agencies #15

adrianmo opened this issue May 26, 2020 · 2 comments · Fixed by #16

Comments

@adrianmo
Copy link
Contributor

Currently the library only takes the first agency in the agency.txt, and that is OK for most feeds as they typically are single-agency feeds, however, other GTFS feeds contain data for more than one agency in the same feed. For example, the agency.txt file in the SNCF feed for Horaires des lignes Transilien looks like this:

agency_id,agency_name,agency_url,agency_timezone,agency_lang
DUA853,"Paris Nord",http://www.transilien.com,Europe/Paris,fr
DUA854,"Paris St Lazare",http://www.transilien.com,Europe/Paris,fr
DUA852,"Paris Rive Gauche",http://www.transilien.com,Europe/Paris,fr
DUA803,"RER C",http://www.transilien.com,Europe/Paris,fr
DUA804,"RER D",http://www.transilien.com,Europe/Paris,fr
DUA850,"Paris Est",http://www.transilien.com,Europe/Paris,fr
DUA855,"La Verrière - La Défense",http://www.transilien.com,Europe/Paris,fr
DUA851,"Paris Sud Est",http://www.transilien.com,Europe/Paris,fr
DUA805,"RER E",http://www.transilien.com,Europe/Paris,fr
DUA802,"RER B",http://www.transilien.com,Europe/Paris,fr
DUA801,"RER A",http://www.transilien.com,Europe/Paris,fr
@artonge
Copy link
Owner

artonge commented May 26, 2020

Hello,

Thanks for the feedback !

I am not actively working on this library anymore. But I accept pull requests. Can you make one ?

@adrianmo
Copy link
Contributor Author

Sure, I'll give it a go as soon as I can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants