only export routes in bbox
All checks were successful
Amarillo/amarillo-gitea/amarillo-enhancer/pipeline/head This commit looks good
All checks were successful
Amarillo/amarillo-gitea/amarillo-enhancer/pipeline/head This commit looks good
This commit is contained in:
parent
4d2558954d
commit
d5a640a298
|
|
@ -85,7 +85,8 @@ class GtfsExport:
|
|||
cloned_trips = dict(ridestore.trips)
|
||||
groups, cloned_trips = self.group_trips_into_routes(cloned_trips)
|
||||
for group in groups:
|
||||
self.convert_route(group)
|
||||
if self.bbox is None or any(trip.intersects(self.bbox) for trip in group.values()):
|
||||
self.convert_route(group)
|
||||
for url, trip in cloned_trips.items():
|
||||
# TODO: convert ridesharing info and driver data
|
||||
if self.bbox is None or trip.intersects(self.bbox):
|
||||
|
|
|
|||
Loading…
Reference in a new issue