From d3b9911445c86058d97647b95753bcc34c0780bd Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Tue, 17 Mar 2015 23:50:20 +0100 Subject: [PATCH] Fix match geometry output --- plugins/match.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/match.hpp b/plugins/match.hpp index 2a9fa043f..bc4738d50 100644 --- a/plugins/match.hpp +++ b/plugins/match.hpp @@ -194,6 +194,11 @@ template class MapMatchingPlugin : public BasePlugin raw_route.target_traversed_in_reverse[i], raw_route.is_via_leg(i)); } + // we need this because we don't run DP + for (auto& segment : factory.path_description) + { + segment.necessary = true; + } subtrace.values["geometry"] = factory.AppendGeometryString(route_parameters.compression); }