-
Notifications
You must be signed in to change notification settings - Fork 106
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
GTFS transformer seems to suppress pickup_type and drop_off_type #303
Comments
Hello, I'm the (relatively) new maintainer of this library. I have not looked into it but that sounds like a bug. Are you interested in contributing a fix? |
Hi Leonard, thank you for ypur reply. I will take a deeper look into the code and debug it as soon I will have a little time left up for it. If I find a possible bug, I will report it here and then we can discuss a possible solution. |
It seems like have found the cause for removing the columns. If you take a look into I have done follwing tests:
In my opinion, this is not a real bug in onebusaway-gtfs-modules, but in my own converter for providing GTFS data :-) Normally, the output should contain some lines with pickup_type other than default / 0. Anyway, what do you think about an additional flag as option in command line and the API for specifying whether the empty or default columns should be removed or not? |
If it's covered with unit tests, I would be ok with it. |
Thank you for your reply. I will try an approach as soon as I have a little more time for it. |
Summary:
I am using the gtfs-transformer-cli for running several transformations. After transforming my GTFS feed, the columns pickup_type, drop_off_type and shape_dist_traveled are missing in the transformed feed. Even if I am running to transformations which should affect stop times at all.
Steps to reproduce:
See the following files attached:
gtfs-static-transformations.txt > The file containing the transformations
gtfs-static-transformed.zip > The finally transformed GTFS feed
Expected behavior:
The columns are not removed.
Observed behavior:
The columns mentioned above are removed entirely, maybe some other columns may be affected too.
Platform:
Test Environment: Windows 10 using Java 17.0.6
Prod Environment: Ubuntu 24.04 using Java in a Docker container (exoplatform/jdk)
The text was updated successfully, but these errors were encountered: