diff --git a/leuvenmapmatching/matcher/base.py b/leuvenmapmatching/matcher/base.py index 37cd4eb..b60b01c 100644 --- a/leuvenmapmatching/matcher/base.py +++ b/leuvenmapmatching/matcher/base.py @@ -643,7 +643,7 @@ def match_incremental(self, path, unique=True, tqdm=None, backtrace_len=None): return [], 0 else: start_obs_idx = len(self.path) - for idx in range(len(self.path)): + for idx in range(len(path)): self.lattice[start_obs_idx + idx] = LatticeColumn(start_obs_idx + idx) self.path += path