diff --git a/include/engine/api/nearest_parameters.hpp b/include/engine/api/nearest_parameters.hpp index dd255d02b..1f35f30ac 100644 --- a/include/engine/api/nearest_parameters.hpp +++ b/include/engine/api/nearest_parameters.hpp @@ -14,10 +14,10 @@ struct NearestParameters : public BaseParameters { unsigned number_of_results; - bool IsValid() const; + bool IsValid() const { return BaseParameters::IsValid() && number_of_results >= 1; } }; } } } -#endif // ROUTE_PARAMETERS_HPP +#endif // ENGINE_API_NEAREST_PARAMETERS_HPP