Nearest Service #coordinates >=1
This commit is contained in:
parent
0a917a77f5
commit
3c81baa26e
@ -31,11 +31,6 @@ std::string getWrongOptionHelp(const engine::api::NearestParameters ¶meters)
|
|||||||
constrainParamSize(
|
constrainParamSize(
|
||||||
PARAMETER_SIZE_MISMATCH_MSG, "radiuses", parameters.radiuses, coord_size, help);
|
PARAMETER_SIZE_MISMATCH_MSG, "radiuses", parameters.radiuses, coord_size, help);
|
||||||
|
|
||||||
if (!param_size_mismatch && parameters.coordinates.size() < 2)
|
|
||||||
{
|
|
||||||
help = "Number of coordinates needs to be at least two.";
|
|
||||||
}
|
|
||||||
|
|
||||||
return help;
|
return help;
|
||||||
}
|
}
|
||||||
} // anon. ns
|
} // anon. ns
|
||||||
|
Loading…
Reference in New Issue
Block a user