osrm-backend/include/engine/api/nearest_parameters.hpp
2016-04-05 22:58:32 +02:00

24 lines
412 B
C++

#ifndef ENGINE_API_NEAREST_PARAMETERS_HPP
#define ENGINE_API_NEAREST_PARAMETERS_HPP
#include "engine/api/base_parameters.hpp"
namespace osrm
{
namespace engine
{
namespace api
{
struct NearestParameters : public BaseParameters
{
unsigned number_of_results = 1;
bool IsValid() const { return BaseParameters::IsValid() && number_of_results >= 1; }
};
}
}
}
#endif // ENGINE_API_NEAREST_PARAMETERS_HPP