From f85a35b5fc032475fbedea3d85286ca18bb317de Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Tue, 15 Dec 2015 21:14:43 +0100 Subject: [PATCH] Fix map matching coordinate check --- plugins/match.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/match.hpp b/plugins/match.hpp index b5f398ceb..78de2cd49 100644 --- a/plugins/match.hpp +++ b/plugins/match.hpp @@ -301,7 +301,7 @@ template class MapMatchingPlugin : public BasePlugin // enforce maximum number of locations for performance reasons if (max_locations_map_matching > 0 && - static_cast(input_coords.size()) < max_locations_map_matching) + static_cast(input_coords.size()) > max_locations_map_matching) { json_result.values["status"] = 400; json_result.values["status_message"] = "Too many coodindates.";