I checked the documentation published by the MOT (it’s mostly in English, sorry I didn’t bring it up sooner) to find out. I also agree that it would be a good idea to track the data for a while and make sure they follow their own spec.
It seems route_id is permanent:
2.5.3. Each alternative (“ חלופה ”), gets its own route_id, and remains constant throughout the lifetime of the alternative.
2.5.4 For each such alternative, there are three parameters that are unique to the alternative: schedule, sequence of stops, and trip route.
2.5.5 Even when one of these data changes (schedule / stations / route) the record remains with the same route_id.
The same cannot be said for trip_id (emphasis mine):
- It should be noted that the trip_id field in this file is a running number only. The date field structure (xxxx_ddmmyy) is meaningless to the user in the files, but is intended to create a unique field only.
- It should also be emphasized that this field does not reflect the actual “trip ID” of the public transport operators in Israel. The information for the “trip ID” - the exact day of the week and hour of day, is detailed in the reference file found in the package: ‘TripToDate’.
There’s no mention for shape_id.
Absolutely, agreed.
That’s very true. It requires some very peculiar handling, which might be too much to ask of you (and generally inappropriate IMO to ask from a global maintainer). I might look into handling it myself, if you agree. Or at least taking part in maintaining the code that handles it, should any issues pop up in the future.
Well, it looks fantastic I’d love to hear what you think the most useful parts of PTNA are. It might be something I didn’t even find yet. I guess the route validation and error output easily takes the cake, but other than that?
- in the CSV data, you can add gtfs-feed and gtfs-route-id information to each line, defining what is expected to be mapped (example for tram ‘2’ with 2 route_ids)
2;tram;;;;תבל;IL-MOT;;"34445;34446"
- …
Would that work? Can we try it now? I added it just now for line 2 of Metronit (bus) on the wiki. I hope I did it right, I went by the field order defined in the comments there which is different from what you wrote above.
I’m less interested in adding it via the route relations because I want to add all routes to PTNA, even those that aren’t mapped yet. (How does PTNA handle routes that are documented but not mapped?)
I might/will have to add some code handling multiple route_ids here, but that should be manageable.
Oh, so it shouldn’t work yet until you add that code. Well, I say go for it! But it seems to me like id1|id2
makes more sense than "id1;id2"
- it should match how ref
multiple values are allowed, which is also documented in the comments of the CSV.
All in all:
- we replaced the effort of maintaining OSM wiki tables by maintenance of a CSV list
- we gained QA for route_master and route relations
- I’m not sure but I guess, PTNA is the only tool which detects “bus: using a oneway road in wrong direction” (considering oneway:bus=no, … though)
I see, amazing!