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:
Patrick Niklaus 2016-01-25 22:31:55 -05:00
commit 4f792c40b7

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