-
Notifications
You must be signed in to change notification settings - Fork 183
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
Make Shapes a recommended file in GTFS #459
Comments
I don't think this should be recommended. Shapes are not required for a journey planner to work, it is a presentation thing specifically targeted for journey planners that present their results on a map. Any timetable journey planner before Google Transit or OpenTripPlanner never did that in the first place. |
As a transit predictor who calculates its own predictions, TransSee uses the shape data to identify and store exactly how far along a trip each vehicle is. While TransSee can work without it, it works much better if it is included. Fortunately most agencies do include it. |
Then why don't you calculate the shapes when they are not available? |
I looked into that in the past. Using a road trip planner didn't always work because buses are sometimes allowed to go on roads other vehicles can't. I looked into algorithms that would allow me to make it from combining recorded vehicle locations but I couldn't find one that would make sharp corners. If this problem was more common I would work on it more. Transit App seems to do this when detecting detours, but only for Montreal STM and they pushed for Trip-Modifications so they can get the information from the agency instead. |
It might also be worth mentioning that 85% of the GTFS Schedule datasets on the Mobility Database have shapes.txt, which is more than feed_info.txt (which is present 62% of the time). |
At Transit, we detect detours but also create shapes when they are not present. Even with that in mind, there's significant value for us to have a shape as defined by the agency because if the vehicle takes a non-optimal path between two stops (which happens sometimes), there's no way for us to know that without a shape. I agree shapes is not used for every use case, but I still think it should be recommended because there's clear use case for it. |
Given the 85% adoption rate, I support making shapes recommended. Recommended is still not required. |
+1 from Caltrans, we use shapes a lot in lots of analyses and believe it provides significant value to customers wanting to view their journey on a map. |
In support of this change. @evansiroky hit the nail on the head: Riders should have access to the vehicle's scheduled path of travel as defined by the agency. Obvious caveat for zone-based services. :) |
+1 to making We also see a lot of value in shapes, echoing comments from others:
|
Heads-up that a vote has been opened in the associated PR. |
Context
As part of our efforts to merge the GTFS Best Practices into the spec, we are:
migrating the current Best Practices into the spec based on community consensus (plan for Schedule, plan for Realtime).
evaluating all outstanding issues and PRs that existed on the Best Practice repos, and proposing new Best Practices to be added directly into the spec, if still relevant.
Scope for this issue
This issue picks-up on MobilityData/GTFS_Schedule_Best-Practices#37 by @e-lo aiming at making
shapes.txt
a recommended file in GTFS.Considerations
feed_info.txt is a recommended file. If it's not included in a GTFS dataset, the canonical GTFS Schedule Validator triggers a missing_recommended_file.
Certain Optional files/fields are dependent on the service (e. g.
timeframes.txt
is for modeling fares based on time of day), whereas other files can and should always be added regardless of the type of service being modeled (e. g. feed_info.txt). We think there is value in calling out the latter explicitly using the termrecommend
to promote higher quality GTFS.shapes.txt
. We could not use the Recommended presence requirement the same way we do for feed_info.txt. That being said, we could add it in its description (similarly to the fieldmin_width
), and write custom logic for triggering missing_recommended_file in the validator only when relevant.Would you support this change?
Tagging folks who engaged in adding the Recommended presence into GTFS @e-lo @antrim @bdferris-v2 @NomeQ @gcamp @evansiroky @markstos @westontrillium @derhuerst @doconnoronca
The text was updated successfully, but these errors were encountered: