From b48022be227bc478377fc1f9f454d94c8b970c04 Mon Sep 17 00:00:00 2001 From: Mortada Mehyar Date: Mon, 25 Jan 2016 14:53:44 -0800 Subject: [PATCH] make it possible to disable max_locations in map_matching --- include/util/routed_options.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/util/routed_options.hpp b/include/util/routed_options.hpp index 7cb69af3e..070b0d694 100644 --- a/include/util/routed_options.hpp +++ b/include/util/routed_options.hpp @@ -237,7 +237,7 @@ GenerateServerProgramOptions(const int argc, { throw exception("Max location for distance table must be at least two"); } - if (2 > max_locations_map_matching) + if (max_locations_map_matching > 0 && 2 > max_locations_map_matching) { throw exception("Max location for map matching must be at least two"); }