getDistanceFunctionId