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

28 lines
770 B
C++
Raw Normal View History

2015-01-27 11:44:46 -05:00
#ifndef NEAREST_HPP
#define NEAREST_HPP
2016-02-17 16:49:44 -05:00
#include "engine/api/nearest_parameters.hpp"
#include "engine/datafacade/contiguous_internalmem_datafacade.hpp"
2016-05-27 15:05:04 -04:00
#include "engine/plugins/plugin_base.hpp"
#include "engine/routing_algorithms.hpp"
2016-01-02 11:13:44 -05:00
#include "osrm/json_container.hpp"
2014-11-24 11:57:01 -05:00
namespace osrm::engine::plugins
2016-01-05 10:51:13 -05:00
{
2016-02-17 15:56:27 -05:00
class NearestPlugin final : public BasePlugin
2014-05-02 12:06:31 -04:00
{
public:
explicit NearestPlugin(const int max_results, const boost::optional<double> default_radius);
Status HandleRequest(const RoutingAlgorithmsInterface &algorithms,
const api::NearestParameters &params,
osrm::engine::api::ResultT &result) const;
private:
const int max_results;
};
2022-12-20 12:00:11 -05:00
} // namespace osrm::engine::plugins
2016-01-05 10:51:13 -05:00
2015-01-27 11:44:46 -05:00
#endif /* NEAREST_HPP */