From 0c3102721c07e04f492a32e2e34e9c56738c3acf Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Fri, 13 Feb 2015 11:01:03 +0100 Subject: [PATCH] Make number of candidates a parameter --- plugins/map_matching.hpp | 2 +- routing_algorithms/map_matching.hpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/map_matching.hpp b/plugins/map_matching.hpp index 0f9a94c80..8a9988277 100644 --- a/plugins/map_matching.hpp +++ b/plugins/map_matching.hpp @@ -130,7 +130,7 @@ template class MapMatchingPlugin : public BasePlugin candidates, last_distance/2.0, 5, - 20)) + Matching::max_number_of_candidates)) { return false; } diff --git a/routing_algorithms/map_matching.hpp b/routing_algorithms/map_matching.hpp index a87a739eb..7bbac2afd 100644 --- a/routing_algorithms/map_matching.hpp +++ b/routing_algorithms/map_matching.hpp @@ -70,6 +70,7 @@ namespace Matching typedef std::vector> CandidateList; typedef std::vector CandidateLists; typedef std::pair PhantomNodesWithProbability; +constexpr static const unsigned max_number_of_candidates = 20; } // implements a hidden markov model map matching algorithm