make it possible to disable max_locations in map_matching
This commit is contained in:
parent
502aedb33e
commit
b48022be22
@ -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