Fix bus stop parsing.

This commit is contained in:
Edward Betts 2026-02-18 09:47:08 +00:00
parent 24f4c49429
commit 363967b739

View file

@ -418,8 +418,8 @@ class Trip:
if item["type"] == "bus":
# Include bus journeys in trip elements
from_country = agenda.get_country(item["from_stop"]["country"])
to_country = agenda.get_country(item["to_stop"]["country"])
from_country = agenda.get_country(item["from_station"]["country"])
to_country = agenda.get_country(item["to_station"]["country"])
name = f"{item['from']}{item['to']}"
elements.append(
TripElement(