From 165dc50a4e8e897a7d7564af7ab783d94881f465 Mon Sep 17 00:00:00 2001 From: Jks Liu Date: Fri, 26 Nov 2021 19:54:29 +0800 Subject: [PATCH] Init lattice for new path point --- leuvenmapmatching/matcher/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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