restore libosrm interface for corech, fallback to ch
This commit is contained in:
committed by
Patrick Niklaus
parent
4f3414c4cc
commit
e385f6352e
+7
-1
@@ -43,8 +43,14 @@ OSRM::OSRM(engine::EngineConfig &config)
|
||||
// Now, check that the algorithm requested can be used with the data
|
||||
// that's available.
|
||||
|
||||
if (config.algorithm == EngineConfig::Algorithm::CH)
|
||||
if (config.algorithm == EngineConfig::Algorithm::CH ||
|
||||
config.algorithm == EngineConfig::Algorithm::CoreCH)
|
||||
{
|
||||
if (config.algorithm == EngineConfig::Algorithm::CoreCH)
|
||||
{
|
||||
util::Log(logWARNING) << "Using CoreCH is deprecated. Falling back to CH";
|
||||
config.algorithm = EngineConfig::Algorithm::CH;
|
||||
}
|
||||
bool ch_compatible = engine::Engine<CH>::CheckCompatibility(config);
|
||||
|
||||
// throw error if dataset is not usable with CH
|
||||
|
||||
Reference in New Issue
Block a user