28 lines
		
	
	
		
			724 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			724 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::engine::plugins
 | |
| {
 | |
| 
 | |
| class NearestPlugin final : public BasePlugin
 | |
| {
 | |
|   public:
 | |
|     explicit NearestPlugin(const int max_results);
 | |
| 
 | |
|     Status HandleRequest(const RoutingAlgorithmsInterface &algorithms,
 | |
|                          const api::NearestParameters ¶ms,
 | |
|                          osrm::engine::api::ResultT &result) const;
 | |
| 
 | |
|   private:
 | |
|     const int max_results;
 | |
| };
 | |
| } // namespace osrm::engine::plugins
 | |
| 
 | |
| #endif /* NEAREST_HPP */
 |