aboutsummaryrefslogtreecommitdiff
path: root/src/stop_downloader/vigo/download-stops.py
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-12-22 12:05:40 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2025-12-22 12:05:40 +0100
commit4e583cc587f9b8cc159cedeb63af2f38d5451507 (patch)
tree547e799d7c45258d34723301f4d7872029033f19 /src/stop_downloader/vigo/download-stops.py
parent2a9aca302485bc08f5b2dd2a54987de6f80fc338 (diff)
Temporary fix for homepage
Diffstat (limited to 'src/stop_downloader/vigo/download-stops.py')
-rw-r--r--src/stop_downloader/vigo/download-stops.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/stop_downloader/vigo/download-stops.py b/src/stop_downloader/vigo/download-stops.py
index 5d039dc..fa08019 100644
--- a/src/stop_downloader/vigo/download-stops.py
+++ b/src/stop_downloader/vigo/download-stops.py
@@ -46,7 +46,7 @@ def apply_overrides(stops, overrides):
# Override name if provided
if "name" in override:
- stop["name"]["original"] = override["name"]
+ stop["name"] = override["name"]
# Apply or add alternate names
if "alternateNames" in override:
@@ -92,7 +92,7 @@ def apply_overrides(stops, overrides):
# Create the new stop
new_stop = {
"stopId": stop_id_int,
- "name": {"original": override.get("name", f"Stop {stop_id_int}")},
+ "name": override.get("name", f"Stop {stop_id_int}"),
"latitude": override.get("location", {}).get("latitude"),
"longitude": override.get("location", {}).get("longitude"),
"lines": override.get("lines", []),
@@ -143,7 +143,7 @@ def download_stops_vitrasa() -> list[dict]:
processed_stop = {
"stopId": "vitrasa:" + str(stop.get("id")),
- "name": {"original": name},
+ "name": name,
"latitude": stop.get("lat"),
"longitude": stop.get("lon"),
"lines": [line.strip() for line in stop.get("lineas", "").split(",")]
@@ -197,7 +197,7 @@ def download_stops_renfe() -> list[dict]:
processed_stop = {
"stopId": "renfe:" + str(stop.get("CODE", 0)),
- "name": {"original": name},
+ "name": name,
"latitude": float(stop.get("LAT", 0).replace(",", ".")),
"longitude": float(stop.get("LNG", 0).replace(",", ".")),
"lines": [],