osrm-backend/include/engine/api/nearest_parameters.hpp

24 lines
408 B
C++
Raw Normal View History

2016-01-28 10:28:44 -05:00
#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;
2016-02-16 18:32:36 -05:00
bool IsValid() const { return BaseParameters::IsValid() && number_of_results >= 1; }
2016-01-28 10:28:44 -05:00
};
}
}
}
2016-02-16 18:32:36 -05:00
#endif // ENGINE_API_NEAREST_PARAMETERS_HPP