osrm-backend/include/engine/plugins/nearest.hpp

35 lines
798 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 datafacade::ContiguousInternalMemoryDataFacadeBase &facade,
const RoutingAlgorithmsInterface &algorithms,
const api::NearestParameters &params,
util::json::Object &result) const;
private:
const int max_results;
};
}
}
}
#endif /* NEAREST_HPP */