IntLatLngSnapFunction.exponentForMaxSnapRadius

Returns the minimum exponent such that vertices will not move by more than "snap_radius". This can be useful when choosing an appropriate exponent for snapping. The return value is always a valid exponent (out of range values are silently clamped).

If you want to choose the exponent based on a distance, and then use the minimum possible snap radius for that exponent, do this:

IntLatLngSnapFunction f( IntLatLngSnapFunction::ExponentForMaxSnapRadius(distance));

class IntLatLngSnapFunction
static
int
exponentForMaxSnapRadius

Meta