osrm-backend/include/engine/plugins/nearest.hpp
Patrick Niklaus 1c2ead8fb8 Make DataFacade local to every request
This is the first step to having fine grained locking on data updates,
see issue #2570.
2016-10-06 12:56:38 +02:00

32 lines
611 B
C++

#ifndef NEAREST_HPP
#define NEAREST_HPP
#include "engine/api/nearest_parameters.hpp"
#include "engine/plugins/plugin_base.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 std::shared_ptr<datafacade::BaseDataFacade> facade,
const api::NearestParameters &params,
util::json::Object &result) const;
private:
const int max_results;
};
}
}
}
#endif /* NEAREST_HPP */