mapnificent / mapnificent_cities

City data repository for mapnificent.net
https://www.mapnificent.net
49 stars 42 forks source link

New gtfs url for westfalen-lippe #54

Open od-ms opened 3 years ago

od-ms commented 3 years ago

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

stefanw commented 3 years ago

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 commented 3 years ago

@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 commented 3 years ago

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 commented 3 years ago

@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 .. ¯\(ツ)