From 8f92b32156a883b39d66cd7d1de3c3190386b68f Mon Sep 17 00:00:00 2001 From: Esteban Zimanyi Date: Thu, 2 Jul 2026 11:40:18 +0200 Subject: [PATCH] Use expandSpace for the candidate-pair spatial filter The truck-pair query expands the trip bounds with expandSpace, matching the other spatial filters in the file. --- BerlinMOD/berlinmod_r_queries.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BerlinMOD/berlinmod_r_queries.sql b/BerlinMOD/berlinmod_r_queries.sql index 5be4c38..bc7442a 100644 --- a/BerlinMOD/berlinmod_r_queries.sql +++ b/BerlinMOD/berlinmod_r_queries.sql @@ -241,7 +241,7 @@ LOOP FROM Trips t1, Vehicles v1, Trips t2, Vehicles v2 WHERE t1.VehicleId = v1.VehicleId AND t2.VehicleId = v2.VehicleId AND t1.VehicleId < t2.VehicleId AND v1.VehicleType = 'truck' AND - v2.VehicleType = 'truck' AND t1.Trip && expandSpatial(t2.Trip, 10) + v2.VehicleType = 'truck' AND t1.Trip && expandSpace(t2.Trip, 10) AND eDwithin(t1.Trip, t2.Trip, 10.0) ORDER BY v1.Licence, v2.Licence INTO J;