Set restrictions on number of results possible, so 0 < number <= 100.

This commit is contained in:
Stefan Rajkovic
2014-08-08 14:09:17 -04:00
parent b9eb936cac
commit def1e5e1d8
2 changed files with 8 additions and 4 deletions
+1 -3
View File
@@ -60,9 +60,6 @@ template <class DataFacadeT> class NearestPlugin : public BasePlugin
route_parameters.zoom_level,
number_of_results);
JSON::Object json_result;
if (phantom_node_vector.empty() || !phantom_node_vector.front().isValid())
{
@@ -107,6 +104,7 @@ template <class DataFacadeT> class NearestPlugin : public BasePlugin
json_result.values["name"] = temp_string;
}
}
JSON::render(reply.content, json_result);
}