diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-11-22 17:59:54 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-11-22 18:33:23 +0100 |
| commit | 2901dddf0309942583ffc812168a149b65b3bdc6 (patch) | |
| tree | 1a03b4bb3838f823735dfd3c9d0340785987949e /src/gtfs_vigo_stops | |
| parent | dc1cf01110fe9ecee05c11dcddc50cb3c8f674fc (diff) | |
feat: Enhance bus position calculation to support previous trip shapes and improve trip ID parsing for multiple formats
Diffstat (limited to 'src/gtfs_vigo_stops')
| -rw-r--r-- | src/gtfs_vigo_stops/stop_report.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gtfs_vigo_stops/stop_report.py b/src/gtfs_vigo_stops/stop_report.py index adc08b1..cb10801 100644 --- a/src/gtfs_vigo_stops/stop_report.py +++ b/src/gtfs_vigo_stops/stop_report.py @@ -166,7 +166,6 @@ def parse_trip_id_components(trip_id: str) -> Optional[Tuple[str, str, int]]: if len(parts) >= 2: shift_part = parts[-2] trip_num_str = parts[-1] - if len(shift_part) == 6 and shift_part.isdigit() and trip_num_str.isdigit(): line = shift_part[:3] shift_id = shift_part[3:6] @@ -186,7 +185,6 @@ def parse_trip_id_components(trip_id: str) -> Optional[Tuple[str, str, int]]: shift_id = shift_part[3:6] # Next 3 digits trip_number = int(trip_num_str) return (line, shift_id, trip_number) - return None except (ValueError, IndexError): return None |
