diff --git a/agenda/trip.py b/agenda/trip.py index 9502103..25f4aee 100644 --- a/agenda/trip.py +++ b/agenda/trip.py @@ -141,8 +141,8 @@ def load_buses( # Calculate CO2 emissions for bus (0.027 kg CO2e per passenger per km) item["co2_kg"] = item["distance"] * 0.1 # Include GeoJSON route if defined in stations data - from_station = item.get("from_stop") - to_station = item.get("to_stop") + from_station = item.get("from_station") + to_station = item.get("to_station") if from_station and to_station: # Support scalar or mapping routes: string or dict of station name -> geojson base name routes_val = from_station.get("routes", {})