💡 Requesting input
What should a SIRI EstimatedCall's StopPointRef refer to?
Leonard Ehrenfried
I'm a developer working on improving the EPIP support in OpenTripPlanner.
While working with the NeTEx and SIRI feeds for South Tyrol I noticed a discrepancy that I can't really resolve. Their SIRI feed contains the following StopPointRef:
While working with the NeTEx and SIRI feeds for South Tyrol I noticed a discrepancy that I can't really resolve. Their SIRI feed contains the following StopPointRef:
<StopPointRef>it:22021:2129:0:5177</StopPointRef>
it:22021:2129:0:5177 is not a quay id in their NeTEx feed. However, I can find the string in the feed. It's in a ScheduledStopPoint but not in its ID.
<ScheduledStopPoint id="it:apb:ScheduledStopPoint:it-22021-2132-1-5273:" version="any"> <keyList> <KeyValue> <Key>GlobalID</Key> <Value>it:22021:2132:1:5273</Value> </KeyValue> </keyList> <Name lang="de">Bolzano, Casanova</Name> <Location> <Longitude>11.315091</Longitude> <Latitude>46.480908</Latitude> </Location> <ShortName lang="de">5273</ShortName> </ScheduledStopPoint>
My first question is: can a SIRI stop point ref refer to a ScheduledStopPoint?
The various profiles have different opinions about this.
Nordic profile
It is very clear that you must put the quay ID as a StopPointRef: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370392/SIRI-ET#SIRI-ET-EstimatedCallStructure
Reference to the serviced Quay. (ID to the corresponding Quay in the national stop place registry, corresponding to the serviced stop point as assigned in the timetable data or corresponding to the stop point as re-assigned in real-time data.)
EU profile
It says the same:
Reference to the Quay in question (ID corresponding to related object in the National Access Point).
Swiss profile
Reference to a SCHEDULED STOP POINT.
Secondly, there is the question if putting the actual ID into the KeyValue is the way these IDs should be modeled. I believe that this value is not in the actual id field because EPIP ids are supposed to follow the following format:
(epd:)[country code] : ([local code]) : [object type] ( _ [epip-type]) : [technical-identifier] : [ID provider for shared IDs]
Can someone confirm that this is the way to go?
- The documentation is paywalled.
- There is no official support or help to be had. At best, it's here - a closed forum, or in GitHub which is not official either. Sometimes questions remain unreplied to.
- We had to make our own examples to learn how to use the format by ourselves.
- The format is full of extremely interpretable features that can tip either way in the hands of each user.
Historical reasons by all means,
---
On the topic of this thread. I am not well versed in SIRI so I cant say what is right or wrong - but the same topic is discussed in the thread from
From what I can tell in
I can only conclude then that SIRI is not Transmodel-compliment and this should warrant immediate attention and correction.
Both in how we work with the standards, but also the profiles so the use cases is easy to understand and implement.
Here we need to work together and open, both with the standards and profiles. Also, mistakes have been done, misunderstanding have been done, they should be corrected, either by better profiles, change in standards or in implementations.
So,
We also agree upon the paywall, but this is not the only issue
My point is that we need to work better on this in the future so we can have better standards and profiles in Europe so we can use each other's data
Does STOP POINT in this act as an "alias" for SCHEDULED STOP POINT or as an alias for any stop, i.e. STOP PLACE or QUAY?
https://github.com/SIRI-CEN/SIRI/blob/ce377ce9a860ac5758a99a159e78716ad74982aa/xsd/siri_model/siri_reference.xsd#L174
That's most probably the reason for the 2 lines, but yes, the second one should be removed now. Can you create a SIRI issue for it ?
So, if SIRI isn't changed, the documentation should at the very least say "StopPointRef in SIRI is analogue to ScheduledStopPointRef in NeTEx". At least until that major update can be made.
About improving the documentation: is it welcome to add more long form explanations which also contain links to the SIRI XSD? Or should it stay as bare bones as it is right now?
Ninja edit:
Can you say a bit more about the tooling you use for converting the XSD to documentation? For years I have been looking for something that generates nice-looking HTML.
https://github.com/VDVde/OJP/blob/develop/docs/generate-tables.sh
So shouldn't the reference be a Quay in this case? I.e. in the physical domain.
The consequence of a ChangeOfStopPointStatus control action is that some EstimatedCalls in SIRI ET/SM are cancelled. Now we are in the service domain, as pointed out above (but following the Nordic profile, we in Movia will refer to Quays here).
If you need to provide more details about the "event" related to the Quay, then that's more a SX Situation that you need (it can be linked to the Control Action when necessary).