fix default value for max_locations_map_matching

This commit is contained in:
Dennis Luxen 2015-03-03 12:55:42 +01:00
parent a9c3b343fc
commit 643ab92cd2

View File

@ -166,34 +166,36 @@ inline unsigned GenerateServerProgramOptions(const int argc,
// declare a group of options that will be allowed both on command line // declare a group of options that will be allowed both on command line
// as well as in a config file // as well as in a config file
boost::program_options::options_description config_options("Configuration"); boost::program_options::options_description config_options("Configuration");
config_options.add_options() config_options.add_options()(
("hsgrdata", boost::program_options::value<boost::filesystem::path>(&paths["hsgrdata"]), "hsgrdata", boost::program_options::value<boost::filesystem::path>(&paths["hsgrdata"]),
".hsgr file") ".hsgr file")("nodesdata",
("nodesdata", boost::program_options::value<boost::filesystem::path>(&paths["nodesdata"]), boost::program_options::value<boost::filesystem::path>(&paths["nodesdata"]),
".nodes file") ".nodes file")(
("edgesdata", boost::program_options::value<boost::filesystem::path>(&paths["edgesdata"]), "edgesdata", boost::program_options::value<boost::filesystem::path>(&paths["edgesdata"]),
".edges file") ".edges file")("geometry",
("geometry", boost::program_options::value<boost::filesystem::path>(&paths["geometries"]), boost::program_options::value<boost::filesystem::path>(&paths["geometries"]),
".geometry file") ".geometry file")(
("ramindex", boost::program_options::value<boost::filesystem::path>(&paths["ramindex"]), "ramindex", boost::program_options::value<boost::filesystem::path>(&paths["ramindex"]),
".ramIndex file") ".ramIndex file")(
("fileindex", boost::program_options::value<boost::filesystem::path>(&paths["fileindex"]), "fileindex", boost::program_options::value<boost::filesystem::path>(&paths["fileindex"]),
"File index file") "File index file")(
("namesdata", boost::program_options::value<boost::filesystem::path>(&paths["namesdata"]), "namesdata", boost::program_options::value<boost::filesystem::path>(&paths["namesdata"]),
".names file") ".names file")("timestamp",
("timestamp", boost::program_options::value<boost::filesystem::path>(&paths["timestamp"]), boost::program_options::value<boost::filesystem::path>(&paths["timestamp"]),
".timestamp file") ".timestamp file")(
("ip,i", boost::program_options::value<std::string>(&ip_address)->default_value("0.0.0.0"), "ip,i", boost::program_options::value<std::string>(&ip_address)->default_value("0.0.0.0"),
"IP address") "IP address")("port,p", boost::program_options::value<int>(&ip_port)->default_value(5000),
("port,p", boost::program_options::value<int>(&ip_port)->default_value(5000), "TCP/IP port")(
"TCP/IP port") "threads,t", boost::program_options::value<int>(&requested_num_threads)->default_value(8),
("threads,t", boost::program_options::value<int>(&requested_num_threads)->default_value(8), "Number of threads to use")(
"Number of threads to use") "shared-memory,s",
("shared-memory,s", boost::program_options::value<bool>(&use_shared_memory)->implicit_value(true), boost::program_options::value<bool>(&use_shared_memory)->implicit_value(true),
"Load data from shared memory") "Load data from shared memory")(
("max-table-size,m", boost::program_options::value<int>(&max_locations_distance_table)->default_value(100), "max-table-size,m",
"Max. locations supported in distance table query") boost::program_options::value<int>(&max_locations_distance_table)->default_value(100),
("max-matching-size,m", boost::program_options::value<int>(&max_locations_map_matching)->default_value(-1), "Max. locations supported in distance table query")(
"max-matching-size,m",
boost::program_options::value<int>(&max_locations_map_matching)->default_value(2),
"Max. locations supported in map matching query"); "Max. locations supported in map matching query");
// hidden options, will be allowed both on command line and in config // hidden options, will be allowed both on command line and in config