traewelling icon indicating copy to clipboard operation
traewelling copied to clipboard

API: New terminus`Stopover` in `trains/trips` is wrongly marked as cancelled

Open marhei opened this issue 1 year ago • 1 comments

When a train has a new terminus, this stopover is also incorrectly marked as cancelled: true, because in HAFAS the departure (but not the arrival) was marked as cancelled.

Expected behaviour: The parameter cancelled should only be true if both arrival and departure have been cancelled.

Example train today: ICE 316 with new final stop Aachen Hbf, which is returned as cancelled according to API.

image image

marhei avatar Oct 21 '23 12:10 marhei

Little bit late to the party, but this is what we're getting from the HAFAS API. I'll look into it, wether we can make the cancellation consistent and a bit more... logical.

HerrLevin avatar Feb 02 '24 10:02 HerrLevin