From e3acaea653ef9a9dfe76436601cc0787d6b4a23e Mon Sep 17 00:00:00 2001 From: Tobias Karusseit Date: Wed, 7 Jan 2026 22:52:01 +0100 Subject: [PATCH 1/2] fix bug where driving edges where ignored in transp. modes = None --- src/multimodalrouter/graph/graph.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/multimodalrouter/graph/graph.py b/src/multimodalrouter/graph/graph.py index 7788835..9838028 100644 --- a/src/multimodalrouter/graph/graph.py +++ b/src/multimodalrouter/graph/graph.py @@ -407,6 +407,8 @@ def find_shortest_path( if allowed_modes is None: allowed_modes = list(self.TransportModes.values()) + if self.drivingEnabled: + allowed_modes.append("car") if start_id == end_id: # create a route with only the start hub From 86cf5ca1d7550c2a9eb013e2fd78aedd67a6cdf2 Mon Sep 17 00:00:00 2001 From: Tobias Karusseit Date: Wed, 7 Jan 2026 22:53:52 +0100 Subject: [PATCH 2/2] update version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3448072..662441f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "multimodalrouter" -version = "0.1.7" +version = "0.1.8" description = "A graph-based routing library for dynamic routing." readme = "README.md" license = { file = "LICENSE.md" }