diff --git a/routing_algorithms/map_matching.hpp b/routing_algorithms/map_matching.hpp index ffade6fd8..55376d224 100644 --- a/routing_algorithms/map_matching.hpp +++ b/routing_algorithms/map_matching.hpp @@ -352,6 +352,9 @@ template class MapMatching final current_coordinate, prev_unbroken_timestamps_list[s].first, current_timestamps_list[s_prime].first); + // very low probability transition -> prune + if (d_t > 2000) + continue; const double transition_pr = log_transition_probability(d_t, beta); new_value += transition_pr;