2016-02-16 13:04:09 -05:00
|
|
|
#ifndef SERVER_SERVICE_TABLE_SERVICE_HPP
|
|
|
|
#define SERVER_SERVICE_TABLE_SERVICE_HPP
|
|
|
|
|
|
|
|
#include "server/service/base_service.hpp"
|
|
|
|
|
|
|
|
#include "engine/status.hpp"
|
|
|
|
#include "osrm/osrm.hpp"
|
2016-05-27 15:05:04 -04:00
|
|
|
#include "util/coordinate.hpp"
|
2016-02-16 13:04:09 -05:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace osrm
|
|
|
|
{
|
|
|
|
namespace server
|
|
|
|
{
|
|
|
|
namespace service
|
|
|
|
{
|
|
|
|
|
|
|
|
class TableService final : public BaseService
|
|
|
|
{
|
|
|
|
public:
|
2016-02-17 18:49:10 -05:00
|
|
|
TableService(OSRM &routing_machine) : BaseService(routing_machine) {}
|
2016-02-16 13:04:09 -05:00
|
|
|
|
2019-08-15 04:40:23 -04:00
|
|
|
engine::Status RunQuery(std::size_t prefix_length,
|
|
|
|
std::string &query,
|
|
|
|
osrm::engine::api::ResultT &result) final override;
|
2016-02-17 18:49:10 -05:00
|
|
|
|
|
|
|
unsigned GetVersion() final override { return 1; }
|
2016-02-16 13:04:09 -05:00
|
|
|
};
|
2020-11-26 10:21:39 -05:00
|
|
|
} // namespace service
|
|
|
|
} // namespace server
|
|
|
|
} // namespace osrm
|
2016-02-16 13:04:09 -05:00
|
|
|
|
|
|
|
#endif
|