osrm-backend/include/engine/plugins/nearest.hpp
Daniel Patterson 50d9632ed7
Upgrade formatting to clang-format 10 (#5895)
* Update formatting tools to clang-format-10

* Reformat using clang-format-10.0.09
2020-11-26 07:21:39 -08:00

34 lines
774 B
C++

#ifndef NEAREST_HPP
#define NEAREST_HPP
#include "engine/api/nearest_parameters.hpp"
#include "engine/datafacade/contiguous_internalmem_datafacade.hpp"
#include "engine/plugins/plugin_base.hpp"
#include "engine/routing_algorithms.hpp"
#include "osrm/json_container.hpp"
namespace osrm
{
namespace engine
{
namespace plugins
{
class NearestPlugin final : public BasePlugin
{
public:
explicit NearestPlugin(const int max_results);
Status HandleRequest(const RoutingAlgorithmsInterface &algorithms,
const api::NearestParameters &params,
osrm::engine::api::ResultT &result) const;
private:
const int max_results;
};
} // namespace plugins
} // namespace engine
} // namespace osrm
#endif /* NEAREST_HPP */