make it possible to disable max_locations in map_matching

This commit is contained in:
Mortada Mehyar 2016-01-25 14:53:44 -08:00
parent 502aedb33e
commit b48022be22

View File

@ -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");
}