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

New gtfs url for westfalen-lippe #54

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

od-ms
Copy link

@od-ms od-ms commented Aug 20, 2021

it seems the old file was taken down by opendata-oepnv

@stefanw
Copy link
Member

stefanw commented Aug 23, 2021

There should be a permanent URL for the GTFS feed. Changing URLs every so often is not how GTFS is supposed to work. The URL, of course, can be a redirect to another URL that points to a specific dated GTFS file.

@od-ms can you make that happen? I'm holding off on updating for now, if this can become a more sustainable change.

@od-ms
Copy link
Author

od-ms commented Aug 23, 2021

@stefanw juliuste did something similar already, but he is only hosting the germany-wide gtfs file. Could you use that file instead for mapnificent? Or maybe is that file too large for mapnificent? (currently 266MB) https://github.com/juliuste/opendata-oepnv

Alternatively, the easiest way for me would be to commit the "westfalen-lippe" gtfs feed file into a github repository, and then link to that file directly. And then update the file from time to time. I could do that. Should I do that?

@stefanw
Copy link
Member

stefanw commented Aug 30, 2021

I think one way to do this with CKAN is to have a dataset or resource on a dataset dedicated to the latest GTFS file and then update that resource. The filename of the resource can change and reflect the creation date, the resource download URL without the filename like this still works and can be stable:

https://www.opendata-oepnv.de/dataset/89892705-b6e7-4ffc-977c-2ba9b86dde46/resource/41a8bb9e-70b5-45d9-9414-dc852cba0d2a/download

I don't think the data needs to be committed anywhere. I just want a stable URL. That URL can just point at the latest resource file on opendata-oepnv.de (no need to copy the data).

@od-ms
Copy link
Author

od-ms commented Aug 30, 2021

@stefanw Yes I see. So what we need is a hosting space where we can put a durable and reliable redirect link.
Sadly I don't have access to a CKAN instance that would be appropriate to contain such a dataset. Do you have a specific CKAN in mind? Also I dont have access to any webserver that would be appropriate or reliable enough to host such a redirect for a long period of time. Thus my proposal to use github: It is durable and reliable .. ¯\(ツ)

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 this pull request may close these issues.

2 participants