-
Notifications
You must be signed in to change notification settings - Fork 34
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
Historic Route/Schedules: Download Transitfeed GTFS #643
Comments
Once this and #642 are done modify save_routes to get the appropriate GTFS from S3 instead of downloading the latest directly from the agency by default (ie. when a date isn't provided, meaning it's the current date) |
hi I'm interested. Could you assign this issue to me? |
Hey @arctdav have you joined our Slack channel and Github organization? If so then you can assign it to yourself. Note that it'd have to be written in Python (and for this PR you could test it on your personal S3 until the PR's approved). |
@EddyIonescu joined Slack channel |
@EddyIonescu two questions
|
Seems to me that transitfeeds.com/api/swagger/#!/default/getLatestFeedVersion isn't working. For example if I pass feed ID "aachener-verkehrsverbund/836" with my key, it says "no response from server". However I assume we use the URL this API responded to download file? |
@arctdav @EddyIonescu I think I know the problem. When using the "Try it out" button at https://transitfeeds.com/api/swagger/#!/default/getLatestFeedVersion, the result is "no content." This appears to be a bug. However, if you copy the link generated there in the "Request URL" field, you can successfully use that link by pasting it into a browser. It will go ahead and start a download of a gtfs zip file. |
@EddyIonescu PR created, waiting for review |
A previous PR (#643) broke viewing the frontend when deployed on nginx by changing the homepage from frontend/build to https://muni.opentransit.city. This PR resolves this by setting the PUBLIC_URL environment variable to frontend/build when running npm run build from the Dockerfile, which is used for all server deployments including Google Cloud, Heroku, and by future users who want to deploy OpenTransit on their own server using our Docker setup. The static S3 serverless approach continues to work for muni.opentransit.city but requires modifying the URLs in frontend/package.json and in frontend/public/CNAME for deploying a static site for other agencies or environments which we don't officially support or document as of yet.
Write a script that, given a date and agency, downloads the appropriate GTFS from TransitFeeds and uploads it to S3. It doesn't download anything from TransitFeeds if the GTFS is already in S3. This script would be deployed to run before save_routes does.
Is an extension of #642 but could be done concurrently
The text was updated successfully, but these errors were encountered: