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