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
npm run start fails #1
Comments
Sorry for the poor documentation. You can generate those files in the MTA_Subway_SIRI_Server repo with the following command: ./bin/updateGTFSData.js url |
Hi @PaulTomchik , Cheers! |
Hi @PaulTomchik ,
This instruction results in the following complain.
I thought I am using the script in the expected way. You can use the provided URL in Firefox browser to download the GTFS feed as ZIP archive. I am appreciating any thoughts about the point I am missing. Cheers! |
Hi @PaulTomchik ,
Is this really an error? I mean, is a GTFS feed required to contain a shapes.txt file? Or is this reply rather a warning or an info and the service is running no matter if a shapes.txt file is part of the GTFS feed? |
Hi @PaulTomchik ,
Do you know what is meant with Appreciate! |
I apologize that it is not in the documentation but the GTFS Feed ZIP archive must include a shapes.txt file. It appears that flixbus-eu.zip archive provided at the URL mentioned above does not. $ ls -l
total 5808
-rw-r--r-- 1 paul paul 719 Jan 7 2021 agency.txt
-rw-r--r-- 1 paul paul 7849 Jan 7 2021 calendar_dates.txt
-rw-r--r-- 1 paul paul 11138 Jan 7 2021 calendar.txt
-rw-r--r-- 1 paul paul 146 Jan 7 2021 feed_info.txt
-rw-rw-r-- 1 paul paul 481081 Apr 15 11:24 flixbus-eu.zip
-rw-r--r-- 1 paul paul 37401 Jan 7 2021 routes.txt
-rw-r--r-- 1 paul paul 212126 Jan 7 2021 stops.txt
-rw-r--r-- 1 paul paul 4674809 Jan 7 2021 stop_times.txt
-rw-r--r-- 1 paul paul 15152 Jan 7 2021 transfers.txt
-rw-r--r-- 1 paul paul 13765 Jan 7 2021 translations.txt
-rw-r--r-- 1 paul paul 466989 Jan 7 2021 trips.txt |
Hi @PaulTomchik , Anyhow, can you explain how/why the two repos MTA_Subway_GTFS-Realtime_to_SIRI_Converter and MTA_Subway_SIRI_Server depend on each other? I appreciate your help and cooperation very much. Do not hesitate to reach out to me when I can do something for you in return. Cheers! |
Hi @PaulTomchik , |
Hi @dancesWithCycles , Sorry, but the short answer is that the shapes.txt file is currently a hard dependency. In its current form, the project would not be able to perform conversions for GTFS feeds that lack that file. It is in fact largely due to the Vehicle monitoring service, however there are likely many other places the code would break if route shapes are not available because the central data structures assume their existence. I looked for simple ways to remove the dependency but had no success. When I get a few moments I will experiment more with removing that dependency, but it may require a significant amount of work. The MTA_Subway_SIRI_Server is a wrapper around the MTA_Subway_GTFS-Realtime_to_SIRI_Converter that provides the HTTP API (see code). In general, the design of these projects is such that specialized repos/modules could be created and composed to address specific requirements of a given transit agency--the GTFS specification is rather flexible/loose. For example, the MTA_Subway_SIRI_Server depends on repos specific to the MTA feeds. |
Have you seen the MTA Bus Time SIRI Intro? |
I have attached a ZIP archive with what ./bin/updateGTFSData.js would produce for the flixbus-eu.zip if it did not throw an error. You can try removing the existing ./data/ directory from your MTA_Subway_SIRI_Server clone and extracting this ZIP in its place. |
Hi @PaulTomchik ,
It is a pity, that the link for the SIRI Handbook is not working anymore. Do you know how or where to get it? Cheers! |
Hi @PaulTomchik ,
Is this feedback/output the expected answer for a successful GTFS feed data update. Is it what I should expect? BTW, in the first place my plan was to set up MTA_Subway_GTFS-Realtime_to_SIRI_Converter and MTA_Subway_SIRI_Server for the Flixbus GTFS and GTFS Realtime feed. Anyhow, if this is a challenge for the long run, my first step could be to switch to a feed that includes shape files. What do you think? |
Hi folks,
Thank you so much for providing this repository.
I cloned this repo, fired the instruction
npm run start
and got the following response.I am especially tripping over this snippet.
I appreciate any hint in the right direction that helps me solve or bypass this issue.
Cheers!
The text was updated successfully, but these errors were encountered: