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" } 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