openTdataCH / ojp-sdk

Meta OJP SDK repo
MIT License
4 stars 0 forks source link

TR: How should `Deviation` be handled? #105

Closed r3to closed 6 days ago

r3to commented 3 weeks ago

We get Deviation on two trips from "Bern – Brienz". One has the last leg with origin/destination NotServiced and the other one has no issues.

See example on Gist

f779a8e1-32b9-4418-9d5a-c09ab759c2b6

60d6a3c7-f21b-4064-aa5e-5a01cd0bfeeb

should the second trip be treated as the "Deviation" of the first trip?

r3to commented 3 weeks ago

Relates to #41

TO-mdv commented 1 week ago

Gerade gecheckt mit aktuelle Beispiel. Auf der Linie S24 gibt es einen Zusatzhalt für Thayngen

Image

Der TripRequest von Schaffhausen nach Herblingen liefert nun das Flag "Deviation", da ein Teil der Linie S24 eine Umleitung ( =Zusatzhalt, welcher nicht in der Randspalte enthalten ist) hat. Die Fahrt wird damit in OJP2.0 korrekt als "Deviation" ausgegeben. Für den Moment macht der OJP also alles richtig, ob die Ausgabe so sinnvoll für den Fahrgast ist müssen wir in der Runde mit SBB besprechen.

Image

r3to commented 6 days ago

As Deviation is true on the Trip eventhough the devation doesn't affect the TimedLeg, we've decided to ignore this property for the time being.