/
srv
/
osrm
/
osrm-backend
/
include
/
engine
/
plugins
/
/srv/osrm/osrm-backend/include/engine/plugins
mkdir
upload
Name
Size
Mode
Actions
match.hpp
1238
0644
edit
dl
rm
nearest.hpp
770
0644
edit
dl
rm
plugin_base.hpp
13940
0644
edit
dl
rm
table.hpp
747
0644
edit
dl
rm
tile.hpp
910
0644
edit
dl
rm
trip.hpp
1267
0644
edit
dl
rm
viaroute.hpp
937
0644
edit
dl
rm
Edit:
/srv/osrm/osrm-backend/include/engine/plugins/match.hpp
(1238B)
#ifndef MATCH_HPP #define MATCH_HPP #include "engine/api/match_parameters.hpp" #include "engine/plugins/plugin_base.hpp" #include "engine/routing_algorithms.hpp" #include "util/json_util.hpp" #include <vector> namespace osrm::engine::plugins { class MatchPlugin : public BasePlugin { public: using SubMatching = map_matching::SubMatching; 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, const boost::optional<double> default_radius) : BasePlugin(default_radius), max_locations_map_matching(max_locations_map_matching), max_radius_map_matching(max_radius_map_matching) { } Status HandleRequest(const RoutingAlgorithmsInterface &algorithms, const api::MatchParameters ¶meters, osrm::engine::api::ResultT &json_result) const; private: const int max_locations_map_matching; const double max_radius_map_matching; }; } // namespace osrm::engine::plugins #endif // MATCH_HPP
Save
cmd:
run