diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2026-04-06 00:24:46 +0200 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2026-04-06 00:24:46 +0200 |
| commit | e86afb375a9ada25d9ee105ca0808028d2d72417 (patch) | |
| tree | d41009a38fa25bd786722147c9629098d772fddc /build_renfe | |
| parent | 586e42d90783b4ef50d74a06970742491f439877 (diff) | |
Diffstat (limited to 'build_renfe')
| -rw-r--r-- | build_renfe/build_static_feed.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/build_renfe/build_static_feed.py b/build_renfe/build_static_feed.py index 6c12c1f..63ba90e 100644 --- a/build_renfe/build_static_feed.py +++ b/build_renfe/build_static_feed.py @@ -457,8 +457,6 @@ if __name__ == "__main__": stop_times_by_trip[tid] = [] stop_times_by_trip[tid].append(st) - shapes_file = open("shapes_debug.txt", "w", encoding="utf-8") - for trip_id in tqdm(trip_ids, total=shape_ids_total, desc="Generating shapes"): shape_id = get_shape_id(trip_id) if shape_id in shape_ids_generated: @@ -488,8 +486,6 @@ if __name__ == "__main__": coords_str = ";".join(coordinates) osrm_url = f"{OSRM_BASE_URL}{coords_str}?overview=full&geometries=geojson&continue_straight=false" - shapes_file.write(f"{trip_id} ({shape_id}): {osrm_url}\n") - try: response = requests.get(osrm_url, timeout=10) if response.status_code == 200: |
