osrm-backend/include/server/service/nearest_service.hpp
Daniel Patterson 50d9632ed7
Upgrade formatting to clang-format 10 (#5895)
* Update formatting tools to clang-format-10

* Reformat using clang-format-10.0.09
2020-11-26 07:21:39 -08:00

36 lines
763 B
C++

#ifndef SERVER_SERVICE_NEAREST_SERVICE_HPP
#define SERVER_SERVICE_NEAREST_SERVICE_HPP
#include "server/service/base_service.hpp"
#include "engine/status.hpp"
#include "osrm/osrm.hpp"
#include "util/coordinate.hpp"
#include <string>
#include <vector>
namespace osrm
{
namespace server
{
namespace service
{
class NearestService final : public BaseService
{
public:
NearestService(OSRM &routing_machine) : BaseService(routing_machine) {}
engine::Status RunQuery(std::size_t prefix_length,
std::string &query,
osrm::engine::api::ResultT &result) final override;
unsigned GetVersion() final override { return 1; }
};
} // namespace service
} // namespace server
} // namespace osrm
#endif