diff --git a/plugins/match.hpp b/plugins/match.hpp index 33ade953d..39ca3247c 100644 --- a/plugins/match.hpp +++ b/plugins/match.hpp @@ -211,9 +211,14 @@ template class MapMatchingPlugin : public BasePlugin raw_route.is_via_leg(i)); } - // we run this to get the instructions factory.Run(route_parameters.zoom_level); + // we need because we don't run path simplification + for (auto &segment : factory.path_description) + { + segment.necessary = true; + } + if (route_parameters.geometry) { subtrace.values["geometry"] = factory.AppendGeometryString(route_parameters.compression);