diff --git a/src/ridepy/util/dispatchers/ridepooling.py b/src/ridepy/util/dispatchers/ridepooling.py index 304558b7..cf065187 100644 --- a/src/ridepy/util/dispatchers/ridepooling.py +++ b/src/ridepy/util/dispatchers/ridepooling.py @@ -472,7 +472,9 @@ def MinimalPassengerTravelTimeDispatcher( stop_before_dropoff, stop_after_dropoff, ) in enumerate(pairwise(stoplist[best_pickup_idx:])): - if counter_drop_off == 0: + if counter_drop_off == best_pickup_idx: + continue + if counter_drop_off < best_pickup_idx: continue list_result_in_between_testDropOff = is_between( space,