Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit d439920

Browse files
Merge pull request #923 from transitland/gtfs-graph-missing-tl-routes
ignoring nil routes
2 parents dcfd8c1 + b4cb5a9 commit d439920

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/services/gtfs_graph.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ def load_tl_route_stop_patterns
467467
stop_times_count += stop_times.length
468468
feed_shape_points = @gtfs.shape_line(trip.shape_id) || []
469469
tl_route = find_by_gtfs_entity(@gtfs.parents(trip).first)
470+
next if tl_route.nil?
470471
# temporary RouteStopPattern
471472
trip_stop_points = tl_stops.map { |s| s.geometry[:coordinates] }
472473
# determine if RouteStopPattern exists

0 commit comments

Comments
 (0)