diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-10-12 20:16:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-12 20:16:47 +0200 |
| commit | 4e6b3edb50e982b365660c9798d6091496d523b3 (patch) | |
| tree | e96341b67497297a35104b76dece5c9ff7802250 | |
| parent | 679729b24d35fdfe7fcc70881599c9b01043b1cd (diff) | |
Fix naming scheme
| -rw-r--r-- | data/download-stops.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/data/download-stops.py b/data/download-stops.py index 12a04dc..b77eae5 100644 --- a/data/download-stops.py +++ b/data/download-stops.py @@ -75,10 +75,14 @@ def main(): # Process the data processed_stops = [] for stop in data: + name = stop.get("nombre", "").strip() + # Fix double space equals comma-space: "Castrelos 202" -> "Castrelos, 202"; and remove quotes + name = name.replace(" ", ", ").replace('"', '').replace("'", "") + processed_stop = { "stopId": stop.get("id"), "name": { - "original": stop.get("nombre", "") + "original": name }, "latitude": stop.get("lat"), "longitude": stop.get("lon"), |
