osrm-backend/include/engine/plugins/viaroute.hpp

44 lines
906 B
C++
Raw Normal View History

#ifndef VIA_ROUTE_HPP
#define VIA_ROUTE_HPP
2016-01-02 11:13:44 -05:00
#include "engine/plugins/plugin_base.hpp"
#include "engine/api/route_api.hpp"
#include "engine/datafacade/datafacade_base.hpp"
#include "engine/routing_algorithms.hpp"
2016-05-27 15:05:04 -04:00
#include "engine/search_engine_data.hpp"
2016-01-28 10:28:44 -05:00
#include "util/json_container.hpp"
#include <cstdlib>
#include <algorithm>
#include <memory>
#include <string>
#include <vector>
2016-01-05 10:51:13 -05:00
namespace osrm
{
namespace engine
{
namespace plugins
{
2016-01-28 10:28:44 -05:00
class ViaRoutePlugin final : public BasePlugin
{
private:
const int max_locations_viaroute;
2017-04-06 08:28:43 -04:00
const int max_alternatives;
public:
2017-04-06 08:28:43 -04:00
explicit ViaRoutePlugin(int max_locations_viaroute, int max_alternatives);
Status HandleRequest(const RoutingAlgorithmsInterface &algorithms,
const api::RouteParameters &route_parameters,
util::json::Object &json_result) const;
};
2016-01-05 10:51:13 -05:00
}
}
}
#endif // VIA_ROUTE_HPP