2016-02-12 19:48:14 -05:00
|
|
|
#ifndef TABLE_HPP
|
|
|
|
#define TABLE_HPP
|
|
|
|
|
|
|
|
#include "engine/plugins/plugin_base.hpp"
|
|
|
|
|
|
|
|
#include "engine/api/table_parameters.hpp"
|
2017-01-09 15:40:33 -05:00
|
|
|
#include "engine/routing_algorithms.hpp"
|
2017-07-26 10:43:53 -04:00
|
|
|
|
2016-02-12 19:48:14 -05:00
|
|
|
#include "util/json_container.hpp"
|
|
|
|
|
2022-12-11 04:10:26 -05:00
|
|
|
namespace osrm::engine::plugins
|
2016-02-12 19:48:14 -05:00
|
|
|
{
|
|
|
|
|
|
|
|
class TablePlugin final : public BasePlugin
|
|
|
|
{
|
|
|
|
public:
|
2023-03-24 11:49:33 -04:00
|
|
|
explicit TablePlugin(const int max_locations_distance_table,
|
2024-07-02 16:37:09 -04:00
|
|
|
const std::optional<double> default_radius);
|
2016-02-12 19:48:14 -05:00
|
|
|
|
2017-07-13 09:05:08 -04:00
|
|
|
Status HandleRequest(const RoutingAlgorithmsInterface &algorithms,
|
2016-10-05 19:05:03 -04:00
|
|
|
const api::TableParameters ¶ms,
|
2019-08-02 10:40:55 -04:00
|
|
|
osrm::engine::api::ResultT &result) const;
|
2016-02-17 16:49:44 -05:00
|
|
|
|
|
|
|
private:
|
2016-10-14 09:55:21 -04:00
|
|
|
const int max_locations_distance_table;
|
2016-02-12 19:48:14 -05:00
|
|
|
};
|
2022-12-20 12:00:11 -05:00
|
|
|
} // namespace osrm::engine::plugins
|
2016-02-12 19:48:14 -05:00
|
|
|
|
|
|
|
#endif // TABLE_HPP
|