Optimise path distance calculation in MLD map matching (#6876)
This commit is contained in:
committed by
GitHub
parent
1e2ffee97c
commit
ee8e0f890a
@@ -1,3 +1,4 @@
|
||||
#include "engine/engine_config.hpp"
|
||||
#include "util/timing_util.hpp"
|
||||
|
||||
#include "osrm/match_parameters.hpp"
|
||||
@@ -32,6 +33,8 @@ try
|
||||
// Configure based on a .osrm base path, and no datasets in shared mem from osrm-datastore
|
||||
EngineConfig config;
|
||||
config.storage_config = {argv[1]};
|
||||
config.algorithm = (argc > 2 && std::string{argv[2]} == "mld") ? EngineConfig::Algorithm::MLD
|
||||
: EngineConfig::Algorithm::CH;
|
||||
config.use_shared_memory = false;
|
||||
|
||||
// Routing machine with several services (such as Route, Table, Nearest, Trip, Match)
|
||||
|
||||
Reference in New Issue
Block a user