Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make schedule editor able to edit all standard fields in trips and stop_times #150

Closed
landonreed opened this issue Dec 7, 2018 · 1 comment

Comments

@landonreed
Copy link
Contributor

Issue by evansiroky
Sunday Oct 29, 2017 at 03:39 GMT
Originally opened as catalogueglobal#44


As a part of working on #46, I have noticed interesting side effects that will affect schedule interpretation. To begin this explanation, I must not that not all null stop times are equal. From a UI standpoint, there is no way to differentiate between a skipped stop and an interpolated stop. When a user first inserts a stop time into a pattern all trips affected will now have a null entry for the stop time, ie the data structure is as follows: null. However, if a user were to delete both departure and arrival times from a stop time, the datastore still stores the stop time, but the departure_time and arrival_time fields are simply set to null. In this case the data structure is now: { "stopId": "abcd", "departure_time": null, "arrival_time": null }.

Once the feed is actually exported to a gtfs each of these data structures are treated differently (see export code here). The first null stop time is not exported at all to the list of stop times of a trip. In this case, the stop is skipped completely by the trip. The second null stop time is included in the output and thus the interpretation is that the trip does serve the stop, but the time is interpolated.

The schedule editor needs to be changed in order to reflect these differences. Furthermore, this refactor could also be a good opportunity to investigate all other fields that can be set on a stop_time such as stop_headsign, pickup_type, drop_off_type, and timepoint.

Also, each trip needs a way to set trip_short_name, * wheelchair_accessible*, and bikes_allowed for a trip.

@landonreed
Copy link
Contributor Author

🎉 This issue has been resolved in version 4.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant