Closed ue71603 closed 4 years ago
Or better, PublishedLineName is optional. That's the case in Siri. Then it is clear. Can we make it optional also in OJP?
The comment of PublishedLineName states: "Line name or service description as known to the public, f.e. "512", "S8" or "Circle Line". In my point of view, this is always there. Every service has a line name or a service name, which is communicated to travelers. Therefore a traveler information API like OJP needs to have this kind of information as mandatory. Could you provide examples, where a service does not have such a communicated name?
In Switzerland some regional trains don't have a line. Even the lines of IC1 and S1 are not really PublishedLineNames. The correct "published line" for both (and all six S1 that exist in Switzerland) is "1". The S1 in Lausanne, Bern, Basel, Zürich and the IC1 all share a pseudo line number of 1.
The RE Schaffhausen-Chur has no line. It only has a train number: Regional-Express 3472
This is by the way true for most train operators in Europe. They use train numbers. Lines is mainly a concept of local transport. I know that we will get to lines also for trains, but currently to fill in the PublishedLineName is in general just not correct.
In the Swiss data and in the current restrictions, we will just but a "space" there. And I don't guess that's helpful.
The comment for PublishedLineName states clearly, that it also may contain a "service description". For a German ICE I would expect it to be filled with "ICE 884", which contains the train number. Perhaps "PublishedLineName" is the wrong term, and "PublishedServiceName" would be more appropriate. However this element is called, it is intended to be filled with a name for the given service which is used in traveler communication. This can be "S1", or "ICE 884", or "511", or "Ringlinie", or "IC 1024". It is not an identifier. Therefore I still think, that for every service there is a name for it, which is used in traveler communication. This shall be filled here.
I will have a look into that. In Switzerland neither 3472 nor RE is used in communication. It is the RE from Schaffhause to Chur. And i guess that would be too much for the field.
After discussion: RE alone would/could be used in that case. However, in the general picture: In Siri it is optional and in NeTEx all possible equivalent elements in Line are optional as well and even the Ref to al Line in VehicleJourney is optional, so it should be optional here as well. This is already a given for consistency alone.
Actually I don't see the necessity to follow Siri or NeTEx here. OJP is a service interface in order to give information to the traveler. Siri and NeTEx are data distribution interfaces/formats. Please have a look at the TimeLegStructure and its sub structures. If PublishedLineName was optional, there would be no mandatory element anymore, which gives the service of a TimedLeg a name. An information system accessible by OJP should be able to give a service an appropriate name to be given to the traveler. Otherwise we could end up with services without any description.
Hi everybody In some cases there exists no LineName. However, the field is mandatory and can't be empty. Sending a blank does not seem a good idea. Should we change the type? What are other opinions? I think we need to coordinate this also with the SIRI CEN group. I ask there, too. Kind regards Matthias
`