From fc4fc3166517f8a01b9b45fc8e125516fb3c098a Mon Sep 17 00:00:00 2001 From: Pranav Sathya A R Date: Thu, 23 Apr 2026 00:22:43 +0530 Subject: [PATCH] fix: stopCode lookup added --- src/services/gtfs_service.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/services/gtfs_service.rs b/src/services/gtfs_service.rs index cd9ffa8..03788b5 100644 --- a/src/services/gtfs_service.rs +++ b/src/services/gtfs_service.rs @@ -789,7 +789,10 @@ impl GTFSService { .insert(stop.cluster.clone().unwrap(), cluster_stop_res); } - stop_data.stops.insert(stop_code.to_string(), stop_res); + stop_data.stops.insert(stop_code.to_string(), stop_res.clone()); + if stop.code != stop_code && !stop.code.is_empty() { + stop_data.stops.insert(stop.code.clone(), stop_res); + } } stops_by_gtfs