38 lines
726 B
C++
38 lines
726 B
C++
#ifndef SERVER_SERVICE_BASE_SERVICE_HPP
|
|
#define SERVER_SERVICE_BASE_SERVICE_HPP
|
|
|
|
#include "engine/status.hpp"
|
|
#include "util/coordinate.hpp"
|
|
#include "osrm/osrm.hpp"
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace osrm
|
|
{
|
|
namespace server
|
|
{
|
|
namespace service
|
|
{
|
|
|
|
class BaseService
|
|
{
|
|
public:
|
|
BaseService(OSRM &routing_machine) : routing_machine(routing_machine) {}
|
|
virtual ~BaseService() = default;
|
|
|
|
virtual engine::Status RunQuery(std::vector<util::FixedPointCoordinate> coordinates,
|
|
std::string &options,
|
|
util::json::Object &json_result) = 0;
|
|
|
|
virtual unsigned GetVersion() = 0;
|
|
|
|
protected:
|
|
OSRM &routing_machine;
|
|
};
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif
|