-
Notifications
You must be signed in to change notification settings - Fork 31
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
Support hail_and_ride / GTFS Flex #156
Comments
I think it would be a good addition to osm2gtfs 👍 But IMHY we should wait for it is fully integrated into the official GTFS spec. For the record :
|
What is meant by hail_and_ride? Fixed itinerary without fixed stop positions or flexible itinerary? I have seen both solutions, rural bus services in Norway are generally fixed itinerary without fixed stop positions, while some minor places have "taxibus" services where you call a number or via app, and your location + destination is added to current itinerary. |
It's about Addis Ababa minibus service. The routes are fixed, but they let you hop on and off anywhere on that route. Does OTP support GTFS flex in any way, because that is what we e generating for.. |
|
For minibus in Addis Ababa it would be https://github.com/MobilityData/gtfs-flex/blob/master/spec/reference.md#request-stops
continuous_pickup=3 in stop_times.txt |
We might need to fork transitfeed, because it does not support that fields https://github.com/google/transitfeed/blob/master/transitfeed/stoptime.py#L48 |
I made some tests with OTP and manually adding to stoptimes.txt
.... And router-config.jsom
The flexMinPartialHopLength setting is important. I get this result: So it seems to work from a OTP point of view. We just have to find out how to add those columns in OSM2GTFS @xamanu Do you see a way without messing with the transitfeed package? |
It could be added somehow in a dirty way with some CSV Manipulation, but I think it would be better to
|
I am wondering if it would be enough to subclass StopTime from Transitfeed. transitfeed does not seem to care much about PRs ... so we might as well maintain an own fork for OSM2GTFS before completely reinventing the wheel? |
I looks like it's possible to change behaviour of transitfeed with an extension We could create a class with the following (stub):
And call Remark: Simply calling
in |
@amenk this is cool. Is there a place where to check the current (not working) state? |
@xamanu Just pushed it - I made some more progress. It's possible with monkey patching to inject the new Factory of the newly created transitfeedflex module https://github.com/AddisMap/osm2gtfs/compare/develop...AddisMap:develop-flex?expand=1 It looked promissing, the flags are in the CSV and I was able to hard-coded set them. But then I did not succeed in passing the flag around to the proper class, if the route is a hail_and_ride route |
Good you got it to work! We really have to rethink how/whether to use transitfeed anymore. |
It's not fully working... But transit feed is fine in this regard and quite
extensible.
|
now I got it working :-) |
Are the plans to support GTFS flex and hail_and_ride tagging?
The text was updated successfully, but these errors were encountered: