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

46 lines
1.2 KiB
C++
Raw Normal View History

#ifndef MATCH_HPP
#define MATCH_HPP
2014-09-23 12:46:14 -04:00
2016-02-17 20:21:47 -05:00
#include "engine/api/match_parameters.hpp"
2016-05-27 15:05:04 -04:00
#include "engine/plugins/plugin_base.hpp"
#include "engine/routing_algorithms.hpp"
2016-01-02 11:13:44 -05:00
#include "util/json_util.hpp"
2014-09-23 12:46:14 -04:00
#include <vector>
2016-01-05 10:51:13 -05:00
namespace osrm
{
namespace engine
{
namespace plugins
{
class MatchPlugin : public BasePlugin
2014-09-23 12:46:14 -04:00
{
public:
using SubMatching = map_matching::SubMatching;
2016-01-05 10:51:13 -05:00
using SubMatchingList = routing_algorithms::SubMatchingList;
using CandidateLists = routing_algorithms::CandidateLists;
static const constexpr double RADIUS_MULTIPLIER = 3;
MatchPlugin(const int max_locations_map_matching, const double max_radius_map_matching)
: max_locations_map_matching(max_locations_map_matching),
max_radius_map_matching(max_radius_map_matching)
2014-09-23 12:46:14 -04:00
{
2015-02-08 18:55:12 -05:00
}
Status HandleRequest(const RoutingAlgorithmsInterface &algorithms,
const api::MatchParameters &parameters,
osrm::engine::api::ResultT &json_result) const;
2014-09-23 12:46:14 -04:00
private:
const int max_locations_map_matching;
const double max_radius_map_matching;
2014-09-23 12:46:14 -04:00
};
} // namespace plugins
} // namespace engine
} // namespace osrm
2016-01-05 10:51:13 -05:00
#endif // MATCH_HPP