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