Merge pull request #1928 from mortada/max_locations_map_matching
make it possible to disable max_locations in map_matching
This commit is contained in:
commit
4f792c40b7
@ -237,7 +237,7 @@ GenerateServerProgramOptions(const int argc,
|
||||
{
|
||||
throw exception("Max location for distance table must be at least two");
|
||||
}
|
||||
if (2 > max_locations_map_matching)
|
||||
if (max_locations_map_matching > 0 && 2 > max_locations_map_matching)
|
||||
{
|
||||
throw exception("Max location for map matching must be at least two");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user