From 643ab92cd2f23dbeb266cd11b911fc1847f35851 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Tue, 3 Mar 2015 12:55:42 +0100 Subject: [PATCH] fix default value for max_locations_map_matching --- util/routed_options.hpp | 60 +++++++++++++++++++++-------------------- 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/util/routed_options.hpp b/util/routed_options.hpp index 0aef32147..046ab71b3 100644 --- a/util/routed_options.hpp +++ b/util/routed_options.hpp @@ -166,35 +166,37 @@ inline unsigned GenerateServerProgramOptions(const int argc, // declare a group of options that will be allowed both on command line // as well as in a config file boost::program_options::options_description config_options("Configuration"); - config_options.add_options() - ("hsgrdata", boost::program_options::value(&paths["hsgrdata"]), - ".hsgr file") - ("nodesdata", boost::program_options::value(&paths["nodesdata"]), - ".nodes file") - ("edgesdata", boost::program_options::value(&paths["edgesdata"]), - ".edges file") - ("geometry", boost::program_options::value(&paths["geometries"]), - ".geometry file") - ("ramindex", boost::program_options::value(&paths["ramindex"]), - ".ramIndex file") - ("fileindex", boost::program_options::value(&paths["fileindex"]), - "File index file") - ("namesdata", boost::program_options::value(&paths["namesdata"]), - ".names file") - ("timestamp", boost::program_options::value(&paths["timestamp"]), - ".timestamp file") - ("ip,i", boost::program_options::value(&ip_address)->default_value("0.0.0.0"), - "IP address") - ("port,p", boost::program_options::value(&ip_port)->default_value(5000), - "TCP/IP port") - ("threads,t", boost::program_options::value(&requested_num_threads)->default_value(8), - "Number of threads to use") - ("shared-memory,s", boost::program_options::value(&use_shared_memory)->implicit_value(true), - "Load data from shared memory") - ("max-table-size,m", boost::program_options::value(&max_locations_distance_table)->default_value(100), - "Max. locations supported in distance table query") - ("max-matching-size,m", boost::program_options::value(&max_locations_map_matching)->default_value(-1), - "Max. locations supported in map matching query"); + config_options.add_options()( + "hsgrdata", boost::program_options::value(&paths["hsgrdata"]), + ".hsgr file")("nodesdata", + boost::program_options::value(&paths["nodesdata"]), + ".nodes file")( + "edgesdata", boost::program_options::value(&paths["edgesdata"]), + ".edges file")("geometry", + boost::program_options::value(&paths["geometries"]), + ".geometry file")( + "ramindex", boost::program_options::value(&paths["ramindex"]), + ".ramIndex file")( + "fileindex", boost::program_options::value(&paths["fileindex"]), + "File index file")( + "namesdata", boost::program_options::value(&paths["namesdata"]), + ".names file")("timestamp", + boost::program_options::value(&paths["timestamp"]), + ".timestamp file")( + "ip,i", boost::program_options::value(&ip_address)->default_value("0.0.0.0"), + "IP address")("port,p", boost::program_options::value(&ip_port)->default_value(5000), + "TCP/IP port")( + "threads,t", boost::program_options::value(&requested_num_threads)->default_value(8), + "Number of threads to use")( + "shared-memory,s", + boost::program_options::value(&use_shared_memory)->implicit_value(true), + "Load data from shared memory")( + "max-table-size,m", + boost::program_options::value(&max_locations_distance_table)->default_value(100), + "Max. locations supported in distance table query")( + "max-matching-size,m", + boost::program_options::value(&max_locations_map_matching)->default_value(2), + "Max. locations supported in map matching query"); // hidden options, will be allowed both on command line and in config // file, but will not be shown to the user