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,6 +85,7 @@ class GtfsExport:
|
||||||
cloned_trips = dict(ridestore.trips)
|
cloned_trips = dict(ridestore.trips)
|
||||||
groups, cloned_trips = self.group_trips_into_routes(cloned_trips)
|
groups, cloned_trips = self.group_trips_into_routes(cloned_trips)
|
||||||
for group in groups:
|
for group in groups:
|
||||||
|
if self.bbox is None or any(trip.intersects(self.bbox) for trip in group.values()):
|
||||||
self.convert_route(group)
|
self.convert_route(group)
|
||||||
for url, trip in cloned_trips.items():
|
for url, trip in cloned_trips.items():
|
||||||
# TODO: convert ridesharing info and driver data
|
# TODO: convert ridesharing info and driver data
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue