Makes MLD default algorithm in example to avoid confusion, see #4702
This commit is contained in:
parent
d9a03f8365
commit
e1e53d274b
@ -422,7 +422,7 @@ install:
|
|||||||
script:
|
script:
|
||||||
- if [[ $TARGET_ARCH == armhf ]] ; then echo "Skip tests for $TARGET_ARCH" && exit 0 ; fi
|
- if [[ $TARGET_ARCH == armhf ]] ; then echo "Skip tests for $TARGET_ARCH" && exit 0 ; fi
|
||||||
- make -C test/data benchmark
|
- make -C test/data benchmark
|
||||||
- ./example/build/osrm-example test/data/ch/monaco.osrm
|
- ./example/build/osrm-example test/data/mld/monaco.osrm
|
||||||
# All tests assume to be run from the build directory
|
# All tests assume to be run from the build directory
|
||||||
- pushd ${OSRM_BUILD_DIR}
|
- pushd ${OSRM_BUILD_DIR}
|
||||||
- ./unit_tests/library-tests
|
- ./unit_tests/library-tests
|
||||||
|
@ -30,9 +30,17 @@ int main(int argc, const char *argv[])
|
|||||||
|
|
||||||
// Configure based on a .osrm base path, and no datasets in shared mem from osrm-datastore
|
// Configure based on a .osrm base path, and no datasets in shared mem from osrm-datastore
|
||||||
EngineConfig config;
|
EngineConfig config;
|
||||||
|
|
||||||
config.storage_config = {argv[1]};
|
config.storage_config = {argv[1]};
|
||||||
config.use_shared_memory = false;
|
config.use_shared_memory = false;
|
||||||
|
|
||||||
|
// We support two routing speed up techniques:
|
||||||
|
// - Contraction Hierarchies (CH): requires extract+contract pre-processing
|
||||||
|
// - Multi-Level Dijkstra (MLD): requires extract+partition+customize pre-processing
|
||||||
|
//
|
||||||
|
// config.algorithm = EngineConfig::Algorithm::CH;
|
||||||
|
config.algorithm = EngineConfig::Algorithm::MLD;
|
||||||
|
|
||||||
// Routing machine with several services (such as Route, Table, Nearest, Trip, Match)
|
// Routing machine with several services (such as Route, Table, Nearest, Trip, Match)
|
||||||
const OSRM osrm{config};
|
const OSRM osrm{config};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user