calculate Allowed Distance
Calculates allowed distance.
Return
The provided distance if checkDistance is truegetDefaultDistance otherwise.
Parameters
distance
The distance to check.
Calculates allowed distance.
The provided distance if checkDistance is truegetDefaultDistance otherwise.
The distance to check.