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

43 lines
891 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"
2017-07-26 10:43:53 -04:00
#include "engine/api/route_parameters.hpp"
#include "engine/routing_algorithms.hpp"
2017-07-26 10:43:53 -04:00
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,
osrm::engine::api::ResultT &json_result) const;
};
} // namespace plugins
} // namespace engine
} // namespace osrm
2016-01-05 10:51:13 -05:00
#endif // VIA_ROUTE_HPP