From dec73b02e926154e385cd82e59ff196b7cacfd62 Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Sun, 22 Feb 2015 23:21:37 +0100 Subject: [PATCH] Rename traces to matchings in response --- plugins/map_matching.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/map_matching.hpp b/plugins/map_matching.hpp index 1aa362120..d4fa22dd9 100644 --- a/plugins/map_matching.hpp +++ b/plugins/map_matching.hpp @@ -193,7 +193,7 @@ template class MapMatchingPlugin : public BasePlugin return 400; } - osrm::json::Array traces; + osrm::json::Array matchings; for (auto& sub : sub_matchings) { // classify result @@ -272,11 +272,11 @@ template class MapMatchingPlugin : public BasePlugin subtrace.values["indices"] = indices; subtrace.values["matched_points"] = temp_result.values["via_points"]; - traces.values.push_back(subtrace); + matchings.values.push_back(subtrace); } json_result.values["debug"] = debug_info; - json_result.values["traces"] = traces; + json_result.values["matchings"] = matchings; return 200; }